|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.AlgorithmParametersSpi de.fhg.igd.crypto.PBEParameters
public class PBEParameters
This class represents a PBEParameter
structure as defined in PKCS#5. This structure is
identified by the following OIDs, depending on the
actual algorithm for which it is used:
Field Summary | |
---|---|
protected int |
count_
The iteration count. |
protected byte[] |
salt_
The salt value. |
Constructor Summary | |
---|---|
PBEParameters()
|
Method Summary | |
---|---|
byte[] |
engineGetEncoded()
|
byte[] |
engineGetEncoded(String format)
This method returns the ASN.1/DER encoded parameter structure as defined in the S/MIME standard. |
AlgorithmParameterSpec |
engineGetParameterSpec(Class paramSpec)
|
void |
engineInit(AlgorithmParameterSpec paramSpec)
This method accepts an PBEParameterSpec . |
void |
engineInit(byte[] b)
This method expects DER encoded PBEParameters as defined in the PKCS#5 standard. |
void |
engineInit(byte[] params,
String format)
This method ignores the format string and attempts to decode according to ASN.1/DER and the parameter structure defined in the S/MIME standard. |
String |
engineToString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int count_
protected byte[] salt_
Constructor Detail |
---|
public PBEParameters()
Method Detail |
---|
public void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
PBEParameterSpec
. Other specs cause an exception being
thrown. The parameter spec must have an iteration count
in the range [1,Integer.MAX_VALUE] and exactly 8 salt bytes.
engineInit
in class AlgorithmParametersSpi
paramSpec
- The PBEParameterSpec with the salt
and iteration count.
InvalidParameterSpecException
public void engineInit(byte[] b) throws IOException
engineInit
in class AlgorithmParametersSpi
b
- The encoded algorithm parameters.
IOException
- in case of a bad encoding.public void engineInit(byte[] params, String format) throws IOException
engineInit
in class AlgorithmParametersSpi
IOException
public AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec) throws InvalidParameterSpecException
engineGetParameterSpec
in class AlgorithmParametersSpi
InvalidParameterSpecException
public byte[] engineGetEncoded() throws IOException
engineGetEncoded
in class AlgorithmParametersSpi
IOException
public byte[] engineGetEncoded(String format) throws IOException
engineGetEncoded
in class AlgorithmParametersSpi
format
- The name of the encoding format; this
parameter is ignored.
IOException
public String engineToString()
engineToString
in class AlgorithmParametersSpi
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |