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.ASN1ChoiceEncryptionKey ::= CHOICE { public PublicEncryptionKey, symmetric SymmetricEncryptionKey }
-
-
Field Summary
Fields Modifier and Type Field Description static intpublicOptionstatic intsymmetric
-
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 intgetChoice()org.bouncycastle.asn1.ASN1EncodablegetEncryptionKey()static EncryptionKeygetInstance(java.lang.Object o)static EncryptionKeypublicOption(PublicEncryptionKey key)static EncryptionKeysymmetric(SymmetricEncryptionKey key)org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()
-
-
-
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:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
-