Package org.mozilla.jss.pkix.primitive
Class PBKDF2Params
java.lang.Object
org.mozilla.jss.pkix.primitive.PBKDF2Params
- All Implemented Interfaces:
ASN1Value
PKCS #5 PBKDF2-Params.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A template class for decoding a PBKDF2Params. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private AlgorithmIdentifier
private AlgorithmIdentifier
private byte[]
private SEQUENCE
private static final Tag
private static final PBKDF2Params.Template
-
Constructor Summary
ConstructorsConstructorDescriptionPBKDF2Params
(byte[] salt, AlgorithmIdentifier otherSource, int iterations, int keyLength, AlgorithmIdentifier prf) Creates a PBKDF2Params from a salt and iteration countPBKDF2Params
(OCTET_STRING salt, AlgorithmIdentifier otherSource, INTEGER iterations, INTEGER keyLength, AlgorithmIdentifier prf) Creates a PBKDF2Params from a salt and iteration count -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
int
getPrf()
byte[]
getSalt()
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static PBKDF2Params.Template
-
Field Details
-
salt
private byte[] salt -
otherSource
-
iterations
private int iterations -
keyLength
private int keyLength -
prf
-
sequence
-
TAG
-
templateInstance
-
-
Constructor Details
-
PBKDF2Params
public PBKDF2Params(byte[] salt, AlgorithmIdentifier otherSource, int iterations, int keyLength, AlgorithmIdentifier prf) Creates a PBKDF2Params from a salt and iteration count -
PBKDF2Params
public PBKDF2Params(OCTET_STRING salt, AlgorithmIdentifier otherSource, INTEGER iterations, INTEGER keyLength, AlgorithmIdentifier prf) Creates a PBKDF2Params from a salt and iteration count
-
-
Method Details
-
getSalt
public byte[] getSalt() -
getIterations
public int getIterations() -
getOtherSource
-
getKeyLength
public int getKeyLength() -
getPrf
-
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-