|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.spec.PBEParameterSpec | +--iaik.security.spec.IaikPBEParameterSpec
This class extends PBEParameterSpec and implements the ASN1Type interface.
A PBEParameterSpec specifies the parameters salt
and iteration
count
, as used by password based encryption according to
PKCS#5.
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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 decodedMethod Detail |
public byte[] getSalt()
getSalt
in class PBEParameterSpec
public int getIterationCount()
getIterationCount
in class 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
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |