public class HashSignAdditionalContext extends SignAdditionalContext
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Long |
hash
The hashing mechanism that should be used.
|
hedgeVariant, pContext| Constructor and Description |
|---|
HashSignAdditionalContext(long hedgeVariant,
byte[] pContext,
long hash)
Create a HashSignAdditionalContext object (CK_HASH_SIGN_ADDITIONAL_CONTEXT) with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object object) |
java.lang.Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the corresponding *_PARAMS class of the
iaik.pkcs.pkcs11.wrapper package.
|
int |
hashCode() |
java.lang.String |
toString() |
protected java.lang.Long hash
CK_MECHANISM_TYPE hash;
CK_HASH_SIGN_ADDITIONAL_CONTEXTpublic HashSignAdditionalContext(long hedgeVariant,
byte[] pContext,
long hash)
hedgeVariant - Indicates how hedge or deterministic signature variants should be handled.
Defaults to CKH_HEDGE_PREFERRED i.e. the token may create either a hedged
signature or a deterministic signature as specified in [FIPS 204].pContext - A NIST defined context string.hash - The hashing mechanism that should be used.CK_HASH_SIGN_ADDITIONAL_CONTEXT,
PKCS11Constants.CKH_HEDGE_PREFERRED,
PKCS11Constants.CKH_HEDGE_REQUIRED,
PKCS11Constants.CKH_DETERMINISTIC_REQUIREDpublic java.lang.Object getPKCS11ParamsObject()
ParametersgetPKCS11ParamsObject in interface ParametersgetPKCS11ParamsObject in class SignAdditionalContextpublic java.lang.String toString()
toString in class SignAdditionalContextpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class SignAdditionalContextjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object object)
equals in class SignAdditionalContextpublic int hashCode()
hashCode in class SignAdditionalContext