|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.pkcs.pkcs11.parameters.RSAPkcsParameters
This abstract class encapsulates parameters for the RSA PKCS mechanisms Mechanism.RSA_PKCS_OAEP and Mechanism.RSA_PKCS_PSS.
Nested Class Summary | |
static interface |
RSAPkcsParameters.MessageGenerationFunctionType
This interface defines the available message generation function types as defined by PKCS#11: CKG_MGF1_SHA1, CKG_MGF1_SHA256, CKG_MGF1_SHA384 and CKG_MGF1_SHA512. |
Field Summary | |
protected Mechanism |
hashAlgorithm_
The message digest algorithm used to calculate the digest of the encoding parameter. |
protected long |
maskGenerationFunction_
The mask to apply to the encoded block. |
Constructor Summary | |
protected |
RSAPkcsParameters(Mechanism hashAlgorithm,
long maskGenerationFunction)
Create a new RSAPkcsarameters object with the given attributes. |
Method Summary | |
Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(Object otherObject)
Compares all member variables of this object with the other object. |
Mechanism |
getHashAlgorithm()
Get the message digest algorithm used to calculate the digest of the encoding parameter. |
long |
getMaskGenerationFunction()
Get the mask to apply to the encoded block. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
void |
setHashAlgorithm(Mechanism hashAlgorithm)
Set the message digest algorithm used to calculate the digest of the encoding parameter. |
void |
setMaskGenerationFunction(long maskGenerationFunction)
Set the mask function to apply to the encoded block. |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface iaik.pkcs.pkcs11.parameters.Parameters |
getPKCS11ParamsObject |
Field Detail |
protected Mechanism hashAlgorithm_
protected long maskGenerationFunction_
Constructor Detail |
protected RSAPkcsParameters(Mechanism hashAlgorithm, long maskGenerationFunction)
hashAlgorithm
- The message digest algorithm used to calculate the
digest of the encoding parameter.maskGenerationFunction
- The mask to apply to the encoded block. One
of the constants defined in the
MessageGenerationFunctionType interface.Method Detail |
public Object clone()
public Mechanism getHashAlgorithm()
public long getMaskGenerationFunction()
public void setHashAlgorithm(Mechanism hashAlgorithm)
hashAlgorithm
- The message digest algorithm used to calculate the
digest of the encoding parameter.public void setMaskGenerationFunction(long maskGenerationFunction)
maskGenerationFunction
- The mask to apply to the encoded block.public String toString()
public boolean equals(Object otherObject)
otherObject
- The other object to compare to.
public int hashCode()
|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |