|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.pkcs.pkcs11.parameters.RSAPkcsParameters
This abstract class encapsulates parameters for the RSA PKCS mechanisms Mechanism.RSA_PKCS_OAEP and Mechanism.RSA_PKCS_PSS.
Inner 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 | |
java.lang.Object |
clone()
Create a (deep) clone of this object. |
boolean |
equals(java.lang.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. |
java.lang.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 java.lang.Object clone()
clone
in class java.lang.Object
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 java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- The other object to compare to.public int hashCode()
hashCode
in class java.lang.Object
|
IAIK PKCS#11 Wrapper version 1.2.18 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |