org.mozilla.jss.pkix.primitive
Class PBEParameter
java.lang.Object
|
+--org.mozilla.jss.pkix.primitive.PBEParameter
- public class PBEParameter
- extends java.lang.Object
- implements ASN1Value
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.
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
salt
private byte[] salt
iterations
private int iterations
sequence
private SEQUENCE sequence
TAG
private static final Tag TAG
templateInstance
private static final PBEParameter.Template templateInstance
PBEParameter
private PBEParameter()
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.
getSalt
public byte[] getSalt()
getIterations
public int getIterations()
getTag
public Tag getTag()
- Specified by:
- getTag in interface ASN1Value
encode
public void encode(java.io.OutputStream ostream)
throws java.io.IOException
- Specified by:
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
java.io.OutputStream ostream)
throws java.io.IOException
- Specified by:
- encode in interface ASN1Value
getTemplate
public static PBEParameter.Template getTemplate()