public class RSAPkcsOaepParameters extends RSAPkcsParameters
Modifier and Type | Class and Description |
---|---|
static interface |
RSAPkcsOaepParameters.SourceType
This interface defines the available source types as defined by PKCS#11: CKZ_DATA_SPECIFIED.
|
RSAPkcsParameters.MessageGenerationFunctionType
Modifier and Type | Field and Description |
---|---|
protected long |
source_
The source of the encoding parameter.
|
protected byte[] |
sourceData_
The data used as the input for the encoding parameter source.
|
hashAlgorithm_, maskGenerationFunction_
Constructor and Description |
---|
RSAPkcsOaepParameters(Mechanism hashAlgorithm,
long maskGenerationFunction,
long source,
byte[] sourceData)
Create a new RSAPkcsOaepParameters 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.
|
java.lang.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.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
getHashAlgorithm, getMaskGenerationFunction, setHashAlgorithm, setMaskGenerationFunction
protected long source_
protected byte[] sourceData_
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.public java.lang.Object clone()
clone
in class RSAPkcsParameters
public java.lang.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 java.lang.String toString()
toString
in class RSAPkcsParameters
public boolean equals(java.lang.Object otherObject)
equals
in class RSAPkcsParameters
otherObject
- The other object to compare to.public int hashCode()
hashCode
in class RSAPkcsParameters
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