public class EncryptedDataEncoder extends Object
| Constructor and Description |
|---|
EncryptedDataEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
encode(EncryptedData encryptedData)
Encodes an
EncryptedData into a byte array. |
static org.apache.directory.shared.asn1.der.DERSequence |
encodeSequence(EncryptedData encryptedData)
Encodes an
EncryptedData into a DERSequence. |
public static byte[] encode(EncryptedData encryptedData) throws IOException
EncryptedData into a byte array.encryptedData - IOExceptionpublic static org.apache.directory.shared.asn1.der.DERSequence encodeSequence(EncryptedData encryptedData)
EncryptedData into a DERSequence.
EncryptedData ::= SEQUENCE {
etype[0] INTEGER, -- EncryptionEngine
kvno[1] INTEGER OPTIONAL,
cipher[2] OCTET STRING -- ciphertext
}encryptedData - DERSequence.Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.