
public final class AESEncryption extends Encryption<SecretKey,SecretKey>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ALGORITHM_AES |
| Modifier | Constructor and Description |
|---|---|
protected |
AESEncryption(XdiAttribute xdiAttribute) |
| Modifier and Type | Method and Description |
|---|---|
void |
decrypt(SecretKey secretKey)
Decrypt the encryption value.
|
void |
encrypt(SecretKey secretKey)
Create the encryption value.
|
static AESEncryption |
fromXdiAttribute(XdiAttribute xdiAttribute)
Factory method that creates an XDI encryption bound to a given XDI attribute.
|
String |
getTransformation() |
static boolean |
isValid(XdiAttribute xdiAttribute)
Checks if an XDI attribute is a valid XDI encryption.
|
clearAfterDecrypt, clearAfterEncrypt, compareTo, equals, getBaseContextNode, getContextNode, getKeyAlgorithm, getKeyLength, getValue, getXdiAttribute, hashCode, setValue, toStringpublic static final String KEY_ALGORITHM_AES
protected AESEncryption(XdiAttribute xdiAttribute)
public static boolean isValid(XdiAttribute xdiAttribute)
xdiAttribute - The XDI attribute to check.public static AESEncryption fromXdiAttribute(XdiAttribute xdiAttribute)
xdiAttribute - The XDI attribute that is an XDI encryption.public String getTransformation()
getTransformation in class Encryption<SecretKey,SecretKey>public void encrypt(SecretKey secretKey) throws GeneralSecurityException
Encryptionencrypt in class Encryption<SecretKey,SecretKey>GeneralSecurityExceptionpublic void decrypt(SecretKey secretKey) throws GeneralSecurityException
Encryptiondecrypt in class Encryption<SecretKey,SecretKey>GeneralSecurityExceptionCopyright © 2017. All rights reserved.