public interface Protector
Modifier and Type | Method and Description |
---|---|
boolean |
compare(ProtectedStringType a,
ProtectedStringType b) |
<T> void |
decrypt(ProtectedData<T> protectedData) |
String |
decryptString(ProtectedStringType 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.
|
boolean |
isEncrypted(ProtectedStringType ps)
Returns true if protected string contains encrypted data that seems valid.
|
<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(ProtectedStringType 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
installedboolean isEncrypted(ProtectedStringType ps)
boolean compare(ProtectedStringType a, ProtectedStringType b) throws EncryptionException
EncryptionException
Copyright © 2016 evolveum. All rights reserved.