Top Description Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class EncryptedValue

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

EncryptedValue Please see reference to pending deprecation in favour of EnvelopedData. Abstract of:

Field Summary

Modifier and TypeField and Description
private ASN1BitString
private ASN1BitString
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 ASN1BitString
public ASN1BitString
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.

(IMPLICIT TAGS)
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

encSymmKeyback to summary
private ASN1BitString encSymmKey
encValueback to summary
private ASN1BitString 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, ASN1BitString encSymmKey, AlgorithmIdentifier keyAlg, ASN1OctetString valueHint, ASN1BitString encValue)

Method Detail

addOptionalback to summary
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj)
getEncSymmKeyback to summary
public ASN1BitString getEncSymmKey()
getEncValueback to summary
public ASN1BitString 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.

(IMPLICIT TAGS)
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.