|
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
iaik.pkcs.pkcs11.parameters.RSAPkcsOaepParameters
This class encapsulates parameters for the Mechanism.RSA_PKCS_OAEP.
Nested Class Summary | |
static interface |
RSAPkcsOaepParameters.SourceType
This interface defines the available source types as defined by PKCS#11: CKZ_DATA_SPECIFIED. |
Nested classes inherited from class iaik.pkcs.pkcs11.parameters.RSAPkcsParameters |
RSAPkcsParameters.MessageGenerationFunctionType |
Field Summary | |
protected long |
source_
The source of the encoding parameter. |
protected byte[] |
sourceData_
The data used as the input for the encoding parameter source. |
Fields inherited from class iaik.pkcs.pkcs11.parameters.RSAPkcsParameters |
hashAlgorithm_, maskGenerationFunction_ |
Constructor Summary | |
RSAPkcsOaepParameters(Mechanism hashAlgorithm,
long maskGenerationFunction,
long source,
byte[] sourceData)
Create a new RSAPkcsOaepParameters 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. |
Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the CK_RSA_PKCS_OAEP_PARAMS class. |
long |
getSource()
Get the source of the encoding parameter. |
byte[] |
getSourceData()
Get the data used as the input for the encoding parameter source. |
int |
hashCode()
The overriding of this method should ensure that the objects of this class work correctly in a hashtable. |
void |
setSource(long source)
Set the source of the encoding parameter. |
void |
setSourceData(byte[] sourceData)
Set the data used as the input for the encoding parameter source. |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class iaik.pkcs.pkcs11.parameters.RSAPkcsParameters |
getHashAlgorithm, getMaskGenerationFunction, setHashAlgorithm, setMaskGenerationFunction |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long source_
protected byte[] sourceData_
Constructor Detail |
public RSAPkcsOaepParameters(Mechanism hashAlgorithm, long maskGenerationFunction, long source, byte[] sourceData)
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.source
- The source of the encoding parameter. One of the constants
defined in the SourceType interface.sourceData
- The data used as the input for the encoding parameter
source.Method Detail |
public Object clone()
clone
in class RSAPkcsParameters
public Object getPKCS11ParamsObject()
public long getSource()
public byte[] getSourceData()
public void setSource(long source)
source
- The source of the encoding parameter.public void setSourceData(byte[] sourceData)
sourceData
- The data used as the input for the encoding parameter
source.public String toString()
toString
in class RSAPkcsParameters
public boolean equals(Object otherObject)
equals
in class RSAPkcsParameters
otherObject
- The other object to compare to.
public int hashCode()
hashCode
in class RSAPkcsParameters
|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |