public abstract class AESSecretKeySignatureCreator extends AbstractAESSignatureCreator implements AESSignatureCreator
DEFAULT_DIGEST_ALGORITHM, DEFAULT_DIGEST_VERSION
Constructor and Description |
---|
AESSecretKeySignatureCreator() |
AESSecretKeySignatureCreator(String digestAlgorithm,
Integer digestLength) |
Modifier and Type | Method and Description |
---|---|
AESSignature |
create(byte[] normalizedSerialization,
ContextNode contextNode,
XDIAddress signerXDIAddress) |
protected abstract SecretKey |
getSecretKey(XDIAddress signerXDIAddress) |
static String |
getSecretKeyAlgorithm(SecretKey secretKey) |
static Integer |
getSecretKeyLength(SecretKey secretKey) |
void |
setValue(byte[] normalizedSerialization,
AESSignature signature,
SecretKey secretKey) |
void |
setValue(byte[] normalizedSerialization,
AESSignature signature,
XDIAddress signerXDIAddress) |
getDigestAlgorithm, getDigestVersion, setDigestAlgorithm, setDigestVersion
canCreate, createSignature, createSignature, createSignature, createSignature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDigestAlgorithm, getDigestVersion
canCreate, createSignature, createSignature, createSignature, createSignature
public AESSecretKeySignatureCreator(String digestAlgorithm, Integer digestLength)
public AESSecretKeySignatureCreator()
public AESSignature create(byte[] normalizedSerialization, ContextNode contextNode, XDIAddress signerXDIAddress) throws GeneralSecurityException
create
in class AbstractSignatureCreator<AESSignature>
GeneralSecurityException
public void setValue(byte[] normalizedSerialization, AESSignature signature, XDIAddress signerXDIAddress) throws GeneralSecurityException
setValue
in class AbstractSignatureCreator<AESSignature>
GeneralSecurityException
public void setValue(byte[] normalizedSerialization, AESSignature signature, SecretKey secretKey) throws GeneralSecurityException
GeneralSecurityException
protected abstract SecretKey getSecretKey(XDIAddress signerXDIAddress) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2017. All rights reserved.