public abstract class RSAPkcsParams extends Object implements Params
| Modifier and Type | Field and Description |
|---|---|
protected Mechanism |
hashAlg
The message digest algorithm used to calculate the digest of the encoding
parameter.
|
protected long |
mgf
The mask to apply to the encoded block.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RSAPkcsParams(Mechanism hashAlg,
long mgf)
Create a new RSAPkcsarameters 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.
|
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 hashAlg)
Set the message digest algorithm used to calculate the digest of the
encoding parameter.
|
void |
setMaskGenerationFunction(long mgf)
Set the mask function to apply to the encoded block.
|
String |
toString()
Returns the string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPKCS11ParamsObjectprotected Mechanism hashAlg
protected long mgf
protected RSAPkcsParams(Mechanism hashAlg, long mgf)
hashAlg - The message digest algorithm used to calculate the digest of the
encoding parameter.mgf - The mask to apply to the encoded block. One of the constants
defined in the MessageGenerationFunctionType interface.public Mechanism getHashAlgorithm()
public long getMaskGenerationFunction()
public void setHashAlgorithm(Mechanism hashAlg)
hashAlgorithm - The message digest algorithm used to calculate the digest of the
encoding parameter.public void setMaskGenerationFunction(long mgf)
mgf - The mask to apply to the encoded block.public String toString()
public boolean equals(Object otherObject)
Copyright © 2018. All rights reserved.