public abstract class PKCS12Algorithm
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a clone of this PKCS12Algorithm.
|
boolean |
equals(java.lang.Object obj)
Compares this PKCS12Algorithm with the given object.
|
int |
getIterationCount()
Gets the iteration count value.
|
int |
getSaltLength()
Gets the length of the salt value.
|
void |
setIterationCount(int iterationCount)
Sets the iteration count.
|
void |
setSalt(byte[] salt)
Sets the the salt value (and its length).
|
void |
setSaltLength(int saltLength)
Sets the length of the salt value.
|
java.lang.String |
toString()
Gets s String representation of this PKCS12Algorithm.
|
public void setIterationCount(int iterationCount)
iterationCount
- the iteration countjava.lang.IllegalArgumentException
- if the iteration count is not positivepublic int getIterationCount()
public void setSaltLength(int saltLength)
saltLength
- the length (number of bytes) of the salt valuejava.lang.IllegalArgumentException
- if the salt length is shorter than 8public int getSaltLength()
public void setSalt(byte[] salt)
salt
- the salt valuejava.lang.IllegalArgumentException
- if the salt length is shorter than 8public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other objecttrue
, if the two objects are equal,
false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object