
public final class SymmetricKeySignature extends Signature<SecretKey,SecretKey>
| Modifier and Type | Field and Description |
|---|---|
static String |
DIGEST_ALGORITHM_SHA |
static String |
KEY_ALGORITHM_AES |
| Modifier | Constructor and Description |
|---|---|
protected |
SymmetricKeySignature(XdiAttribute xdiAttribute) |
| Modifier and Type | Method and Description |
|---|---|
static SymmetricKeySignature |
fromXdiAttribute(XdiAttribute xdiAttribute)
Factory method that creates an XDI signature bound to a given XDI attribute.
|
String |
getAlgorithm() |
static boolean |
isValid(XdiAttribute xdiAttribute)
Checks if an XDI attribute is a valid XDI signature.
|
void |
sign(SecretKey secretKey)
Create the signature value.
|
boolean |
validate(SecretKey secretKey)
Validate the signature value.
|
compareTo, equals, getBaseContextNode, getContextNode, getDigestAlgorithm, getDigestLength, getKeyAlgorithm, getKeyLength, getValue, getXdiAttribute, hashCode, setValue, toStringpublic static final String KEY_ALGORITHM_AES
public static final String DIGEST_ALGORITHM_SHA
protected SymmetricKeySignature(XdiAttribute xdiAttribute)
public static boolean isValid(XdiAttribute xdiAttribute)
xdiAttribute - The XDI attribute to check.public static SymmetricKeySignature fromXdiAttribute(XdiAttribute xdiAttribute)
xdiAttribute - The XDI attribute that is an XDI signature.public String getAlgorithm()
getAlgorithm in class Signature<SecretKey,SecretKey>public void sign(SecretKey secretKey) throws GeneralSecurityException
Signaturesign in class Signature<SecretKey,SecretKey>GeneralSecurityExceptionpublic boolean validate(SecretKey secretKey) throws GeneralSecurityException
Signaturevalidate in class Signature<SecretKey,SecretKey>GeneralSecurityExceptionCopyright © 2015. All Rights Reserved.