public class SignAdditionalContext extends java.lang.Object implements Parameters
| Modifier and Type | Field and Description |
|---|---|
protected long |
hedgeVariant
Indicates how hedge or deterministic signature variants should be handled.
|
protected byte[] |
pContext
A NIST defined context string.
|
| Constructor and Description |
|---|
SignAdditionalContext(long hedgeVariant,
byte[] pContext)
Create a SignAdditionalContext object (CK_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 long hedgeVariant
typedef CK_ULONG CK_HEDGE_TYPE;
CK_HEDGE_TYPE hedgeVariant;
protected byte[] pContext
CK_BYTE_PTR pContext;
CK_ULONG ulContextLen;
public SignAdditionalContext(long hedgeVariant,
byte[] pContext)
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.CK_SIGN_ADDITIONAL_CONTEXT,
PKCS11Constants.CKH_HEDGE_PREFERRED,
PKCS11Constants.CKH_HEDGE_REQUIRED,
PKCS11Constants.CKH_DETERMINISTIC_REQUIREDpublic java.lang.Object getPKCS11ParamsObject()
ParametersgetPKCS11ParamsObject in interface Parameterspublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object