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, toString
public 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
Encryption
encrypt
in class Encryption<SecretKey,SecretKey>
GeneralSecurityException
public void decrypt(SecretKey secretKey) throws GeneralSecurityException
Encryption
decrypt
in class Encryption<SecretKey,SecretKey>
GeneralSecurityException
Copyright © 2017. All rights reserved.