public interface Protector
| Modifier and Type | Field and Description |
|---|---|
static String |
XMLSEC_ENCRYPTION_ALGORITHM_AES128_CBC |
static String |
XMLSEC_ENCRYPTION_ALGORITHM_AES256_CBC |
static String |
XMLSEC_ENCRYPTION_NS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEquivalent(ProtectedStringType a,
ProtectedStringType b)
Decides equivalence of two protected data objects (for data management purposes).
|
boolean |
compareCleartext(ProtectedStringType a,
ProtectedStringType b)
Compare cleartext values protected inside the protected strings.
|
<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) |
static final String XMLSEC_ENCRYPTION_NS
static final String XMLSEC_ENCRYPTION_ALGORITHM_AES128_CBC
static final String XMLSEC_ENCRYPTION_ALGORITHM_AES256_CBC
<T> void decrypt(ProtectedData<T> protectedData) throws EncryptionException, SchemaException
EncryptionExceptionSchemaException<T> void encrypt(ProtectedData<T> protectedData) throws EncryptionException
EncryptionExceptionList<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
EncryptionExceptionSchemaExceptionboolean compareCleartext(ProtectedStringType a, ProtectedStringType b) throws EncryptionException, SchemaException
boolean areEquivalent(ProtectedStringType a, ProtectedStringType b) throws EncryptionException, SchemaException
boolean isEncryptedByCurrentKey(@NotNull
EncryptedDataType data)
throws EncryptionException
EncryptionExceptionCopyright © 2022 Evolveum. All rights reserved.