public interface Protector
Modifier and Type | Method and Description |
---|---|
Element |
decrypt(ProtectedStringType protectedString) |
String |
decryptString(ProtectedStringType protectedString) |
ProtectedStringType |
encrypt(Element plain) |
void |
encrypt(ProtectedStringType ps)
Encrypts the ProtectedStringType "in place".
|
ProtectedStringType |
encryptString(String text) |
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.
|
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 nullElement decrypt(ProtectedStringType protectedString) throws EncryptionException
protectedString
- Element
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
installedProtectedStringType encrypt(Element plain) throws EncryptionException
plain
- ProtectedStringType
with encrypted element inside it. If
input argument is null, method returns null.EncryptionException
- this is thrown probably in case JRE/JDK doesn't have JCE
installedvoid encrypt(ProtectedStringType ps) throws EncryptionException
ps
- EncryptionException
boolean isEncrypted(ProtectedStringType ps)
List<TrustManager> getTrustManagers()
Copyright © 2013 evolveum. All rights reserved.