|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Protector
Method Summary | |
---|---|
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. |
Method Detail |
---|
String decryptString(ProtectedStringType protectedString) throws EncryptionException
protectedString
-
EncryptionException
- this is thrown probably in case JRE/JDK doesn't have JCE
installed
IllegalArgumentException
- 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
installed
IllegalArgumentException
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |