Class EncryptionKey
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.oer.its.ieee1609dot2.basetypes.EncryptionKey
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice
,org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class EncryptionKey extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
EncryptionKey ::= CHOICE { public PublicEncryptionKey, symmetric SymmetricEncryptionKey }
-
-
Field Summary
Fields Modifier and Type Field Description static int
publicOption
static int
symmetric
-
Constructor Summary
Constructors Constructor Description EncryptionKey(int choice, org.bouncycastle.asn1.ASN1Encodable value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChoice()
org.bouncycastle.asn1.ASN1Encodable
getEncryptionKey()
static EncryptionKey
getInstance(java.lang.Object o)
static EncryptionKey
publicOption(PublicEncryptionKey key)
static EncryptionKey
symmetric(SymmetricEncryptionKey key)
org.bouncycastle.asn1.ASN1Primitive
toASN1Primitive()
-
-
-
Field Detail
-
publicOption
public static final int publicOption
- See Also:
- Constant Field Values
-
symmetric
public static final int symmetric
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EncryptionKey getInstance(java.lang.Object o)
-
publicOption
public static EncryptionKey publicOption(PublicEncryptionKey key)
-
symmetric
public static EncryptionKey symmetric(SymmetricEncryptionKey key)
-
getChoice
public int getChoice()
-
getEncryptionKey
public org.bouncycastle.asn1.ASN1Encodable getEncryptionKey()
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-
-