public abstract class RSAPkcsParameters extends java.lang.Object implements Parameters
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
protected |
RSAPkcsParameters(Mechanism hashAlgorithm,
long maskGenerationFunction)
Create a new RSAPkcsarameters object with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
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.
|
finalize, getClass, notify, notifyAll, wait, wait, wait
getPKCS11ParamsObject
protected Mechanism hashAlgorithm_
protected long maskGenerationFunction_
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.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 JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9