Top Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class EncryptedValue

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Field Summary

Modifier and TypeField and Description
private DERBitString
private DERBitString
private AlgorithmIdentifier
private AlgorithmIdentifier
private AlgorithmIdentifier
private ASN1OctetString

Constructor Summary

AccessConstructor and Description
private
public

Method Summary

Modifier and TypeMethod and Description
private void
public DERBitString
public DERBitString
public static EncryptedValue
public AlgorithmIdentifier
public AlgorithmIdentifier
public AlgorithmIdentifier
public ASN1OctetString
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

encSymmKeyback to summary
private DERBitString encSymmKey
encValueback to summary
private DERBitString encValue
intendedAlgback to summary
private AlgorithmIdentifier intendedAlg
keyAlgback to summary
private AlgorithmIdentifier keyAlg
symmAlgback to summary
private AlgorithmIdentifier symmAlg
valueHintback to summary
private ASN1OctetString valueHint

Constructor Detail

EncryptedValueback to summary
private EncryptedValue(ASN1Sequence seq)
EncryptedValueback to summary
public EncryptedValue(AlgorithmIdentifier intendedAlg, AlgorithmIdentifier symmAlg, DERBitString encSymmKey, AlgorithmIdentifier keyAlg, ASN1OctetString valueHint, DERBitString encValue)

Method Detail

addOptionalback to summary
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj)
getEncSymmKeyback to summary
public DERBitString getEncSymmKey()
getEncValueback to summary
public DERBitString getEncValue()
getInstanceback to summary
public static EncryptedValue getInstance(Object o)
getIntendedAlgback to summary
public AlgorithmIdentifier getIntendedAlg()
getKeyAlgback to summary
public AlgorithmIdentifier getKeyAlg()
getSymmAlgback to summary
public AlgorithmIdentifier getSymmAlg()
getValueHintback to summary
public ASN1OctetString getValueHint()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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
Returns:ASN1Primitive

a basic ASN.1 object representation.