org.mozilla.jss.pkix.primitive
Class PBEParameter
java.lang.Object
org.mozilla.jss.pkix.primitive.PBEParameter
- ASN1Value
public class PBEParameter
extends java.lang.Object
PKCS #5 PBEParameter, and PKCS #12 pkcs-12PbeParams. The only
difference between the two is that PKCS #5 dictates that the size of the
salt must be 8 bytes, while PKCS #12 leaves the salt length undefined.
To work with both standards, this class does not check the length of the
salt but rather leaves that to the application.
void | encode(OutputStream ostream) - Write this value's DER encoding to an output stream using
its own base tag.
|
void | encode(Tag implicitTag, OutputStream ostream) - Write this value's DER encoding to an output stream using
an implicit tag.
|
int | getIterations()
|
byte[] | getSalt()
|
Tag | getTag() - Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static PBEParameter.Template | getTemplate()
|
PBEParameter
public PBEParameter(byte[] salt,
int iterations)
Creates a PBEParameter from a salt and iteration count. Neither
may be null.
PBEParameter
public PBEParameter(OCTET_STRING salt,
INTEGER iterations)
Creates a PBEParameter from a salt and iteration count. Neither
may be null.
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getIterations
public int getIterations()
getSalt
public byte[] getSalt()
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value