Methods Summary |
---|
public static org.bouncycastle.asn1.pkcs.PBKDF2Params | getInstance(java.lang.Object obj)
if (obj instanceof PBKDF2Params)
{
return (PBKDF2Params)obj;
}
if (obj instanceof ASN1Sequence)
{
return new PBKDF2Params((ASN1Sequence)obj);
}
throw new IllegalArgumentException("unknown object in factory");
|
public java.math.BigInteger | getIterationCount()
return iterationCount.getValue();
|
public java.math.BigInteger | getKeyLength()
if (keyLength != null)
{
return keyLength.getValue();
}
return null;
|
public byte[] | getSalt()
return octStr.getOctets();
|
public org.bouncycastle.asn1.DERObject | toASN1Object()
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(octStr);
v.add(iterationCount);
if (keyLength != null)
{
v.add(keyLength);
}
return new DERSequence(v);
|