public abstract class RSAPkcsParameters extends Object implements Parameters
| Modifier and Type | Field and Description |
|---|---|
protected long |
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.
|
protected static Map<Long,Long> |
mgf2HashAlgMap |
| Modifier | Constructor and Description |
|---|---|
protected |
RSAPkcsParameters(long 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.
|
long |
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(long 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 long hashAlg
protected long mgf
protected RSAPkcsParameters(long 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.
Due to limitation in the underlying jdk.crypto.cryptoki
implementation, only MGF1 is allowed and the hash algorithm
in mgf must be same as hashAlg.public long getHashAlgorithm()
public long getMaskGenerationFunction()
public void setHashAlgorithm(long hashAlg)
hashAlg - 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 © 2022. All rights reserved.