public class RSAPkcsOaepParams extends RSAPkcsParams
| Modifier and Type | Class and Description |
|---|---|
static interface |
RSAPkcsOaepParams.SourceType
This interface defines the available source types as defined by
PKCS#11: CKZ_DATA_SPECIFIED.
|
| 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.
|
hashAlg, mgf| Constructor and Description |
|---|
RSAPkcsOaepParams(Mechanism hashAlgorithm,
long maskGenerationFunction,
long source,
byte[] sourceData)
Create a new RSAPkcsOaepParameters object with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getHashAlgorithm, getMaskGenerationFunction, setHashAlgorithm, setMaskGenerationFunctionprotected long source
protected byte[] sourceData
public RSAPkcsOaepParams(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 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 RSAPkcsParamspublic boolean equals(Object otherObject)
equals in class RSAPkcsParamsotherObject - The other object to compare to.public int hashCode()
hashCode in class RSAPkcsParamsCopyright © 2018. All rights reserved.