public interface Protector
Modifier and Type | Method and Description |
---|---|
boolean |
compare(ProtectedStringType a,
ProtectedStringType b) |
<T> void |
decrypt(ProtectedData<T> protectedData) |
String |
decryptString(ProtectedData<String> protectedString) |
<T> void |
encrypt(ProtectedData<T> protectedData) |
ProtectedStringType |
encryptString(String text) |
KeyStore |
getKeyStore() |
List<TrustManager> |
getTrustManagers()
Returns a list of trust managers that will be used to validate communicating party credentials.
|
<T> void |
hash(ProtectedData<T> protectedData) |
boolean |
isEncrypted(ProtectedStringType ps)
Deprecated.
|
boolean |
isEncryptedByCurrentKey(EncryptedDataType data) |
<T> void decrypt(ProtectedData<T> protectedData) throws EncryptionException, SchemaException
EncryptionException
SchemaException
<T> void encrypt(ProtectedData<T> protectedData) throws EncryptionException
EncryptionException
List<TrustManager> getTrustManagers()
KeyStore getKeyStore()
String decryptString(ProtectedData<String> protectedString) throws EncryptionException
protectedString
- EncryptionException
- this is thrown probably in case JRE/JDK doesn't have JCE
installedIllegalArgumentException
- if protectedString argument is null or EncryptedData in
protectedString argument is nullProtectedStringType encryptString(String text) throws EncryptionException
text
- ProtectedStringType
with encrypted string inside it. If
input argument is null or empty, method returns null.EncryptionException
- this is thrown probably in case JRE/JDK doesn't have JCE
installed@Deprecated boolean isEncrypted(ProtectedStringType ps)
<T> void hash(ProtectedData<T> protectedData) throws EncryptionException, SchemaException
EncryptionException
SchemaException
boolean compare(ProtectedStringType a, ProtectedStringType b) throws EncryptionException, SchemaException
EncryptionException
SchemaException
boolean isEncryptedByCurrentKey(@NotNull EncryptedDataType data) throws EncryptionException
EncryptionException
Copyright © 2019 Evolveum. All rights reserved.