|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.AlgorithmParametersSpi
de.fhg.igd.crypto.DESParameters
public class DESParameters
This class represents a DES Parameter as defined in
RFC 2311 : S/MIME Version 2 Message Specification.
| Field Summary | |
|---|---|
protected byte[] |
iv_
The initialisation vector (IV), consisting of 8 bytes. |
| Constructor Summary | |
|---|---|
DESParameters()
|
|
| 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 IvParameterSpec. |
void |
engineInit(byte[] encoded)
This method expects DER encoded DESParameters as defined in the S/MIME 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()
|
static void |
main(String[] argv)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] iv_
| Constructor Detail |
|---|
public DESParameters()
| Method Detail |
|---|
public static void main(String[] argv)
public void engineInit(AlgorithmParameterSpec paramSpec)
throws InvalidParameterSpecException
IvParameterSpec. Other specs cause an exception being
thrown.
engineInit in class AlgorithmParametersSpiparamSpec - The IvParameterSpec with the IV.
InvalidParameterSpecException
public void engineInit(byte[] encoded)
throws IOException
engineInit in class AlgorithmParametersSpiencoded - The encoded algorithm parameters.
IllegalArgumentException - in case of a
bad encoding.
IOException
public void engineInit(byte[] params,
String format)
throws IOException
engineInit in class AlgorithmParametersSpiIOException
public AlgorithmParameterSpec engineGetParameterSpec(Class paramSpec)
throws InvalidParameterSpecException
engineGetParameterSpec in class AlgorithmParametersSpiInvalidParameterSpecException
public byte[] engineGetEncoded()
throws IOException
engineGetEncoded in class AlgorithmParametersSpiIOException
public byte[] engineGetEncoded(String format)
throws IOException
engineGetEncoded in class AlgorithmParametersSpiformat - The name of the encoding format; this
parameter is ignored.
IOExceptionpublic String engineToString()
engineToString in class AlgorithmParametersSpi
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||