public class IaikPBEParameterSpec extends javax.crypto.spec.PBEParameterSpec implements ASN1Type
salt
and iteration
count
, as used by password based encryption according to
PKCS#5.Constructor and Description |
---|
IaikPBEParameterSpec(ASN1Object algorithmParameter)
Creates a PBE paramter specification from an ASN1Object.
|
IaikPBEParameterSpec(byte[] salt,
int iterationCount)
Specifies the PBE parameters, using a salt and a iteration count.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ASN1Object obj)
Decodes the given ASN.1 object and parses
it for salt and iteration count.
|
int |
getIterationCount()
Returns the iteration count.
|
byte[] |
getSalt()
Returns the salt.
|
ASN1Object |
toASN1Object()
Returns this PBE parameter specification as an ASN1Object.
|
java.lang.String |
toString()
Gets a String representation of this PBEParameterSpec.
|
public IaikPBEParameterSpec(byte[] salt, int iterationCount)
salt
- the salt valueiterationCount
- the iteration count valuepublic IaikPBEParameterSpec(ASN1Object algorithmParameter) throws CodingException
IaikPBEParameterSpec params = new IaikPBEParameterSpec(encryptionAlg.getParameter());
algorithmParameter
- the algorithm parameters as ASN1ObjectCodingException
- if the parameter could not be decodedpublic byte[] getSalt()
getSalt
in class javax.crypto.spec.PBEParameterSpec
public int getIterationCount()
getIterationCount
in class javax.crypto.spec.PBEParameterSpec
public void decode(ASN1Object obj) throws CodingException
decode
in interface ASN1Type
obj
- the algorithm parameters as ASN1ObjectCodingException
- if the parameter could not be decodedpublic ASN1Object toASN1Object()
toASN1Object
in interface ASN1Type
public java.lang.String toString()
toString
in class java.lang.Object