public class EncryptedValue extends ASN1Encodable
Modifier and Type | Field and Description |
---|---|
private DERBitString |
encSymmKey |
private DERBitString |
encValue |
private AlgorithmIdentifier |
intendedAlg |
private AlgorithmIdentifier |
keyAlg |
private AlgorithmIdentifier |
symmAlg |
private ASN1OctetString |
valueHint |
BER, DER
Modifier | Constructor and Description |
---|---|
private |
EncryptedValue(ASN1Sequence seq) |
Modifier and Type | Method and Description |
---|---|
private void |
addOptional(ASN1EncodableVector v,
int tagNo,
ASN1Encodable obj) |
static EncryptedValue |
getInstance(java.lang.Object o) |
DERObject |
toASN1Object()
EncryptedValue ::= SEQUENCE {
intendedAlg [0] AlgorithmIdentifier OPTIONAL,
-- the intended algorithm for which the value will be used
symmAlg [1] AlgorithmIdentifier OPTIONAL,
-- the symmetric algorithm used to encrypt the value
encSymmKey [2] BIT STRING OPTIONAL,
-- the (encrypted) symmetric key used to encrypt the value
keyAlg [3] AlgorithmIdentifier OPTIONAL,
-- algorithm used to encrypt the symmetric key
valueHint [4] OCTET STRING OPTIONAL,
-- a brief description or identifier of the encValue content
-- (may be meaningful only to the sending entity, and used only
-- if EncryptedValue might be re-examined by the sending entity
-- in the future)
encValue BIT STRING }
-- the encrypted value itself
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
private AlgorithmIdentifier intendedAlg
private AlgorithmIdentifier symmAlg
private DERBitString encSymmKey
private AlgorithmIdentifier keyAlg
private ASN1OctetString valueHint
private DERBitString encValue
private EncryptedValue(ASN1Sequence seq)
public static EncryptedValue getInstance(java.lang.Object o)
public DERObject toASN1Object()
EncryptedValue ::= SEQUENCE { intendedAlg [0] AlgorithmIdentifier OPTIONAL, -- the intended algorithm for which the value will be used symmAlg [1] AlgorithmIdentifier OPTIONAL, -- the symmetric algorithm used to encrypt the value encSymmKey [2] BIT STRING OPTIONAL, -- the (encrypted) symmetric key used to encrypt the value keyAlg [3] AlgorithmIdentifier OPTIONAL, -- algorithm used to encrypt the symmetric key valueHint [4] OCTET STRING OPTIONAL, -- a brief description or identifier of the encValue content -- (may be meaningful only to the sending entity, and used only -- if EncryptedValue might be re-examined by the sending entity -- in the future) encValue BIT STRING } -- the encrypted value itself
toASN1Object
in class ASN1Encodable
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj)
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.