Class EncKeyWithID

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.crmf.EncKeyWithID
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class EncKeyWithID extends org.bouncycastle.asn1.ASN1Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncKeyWithID(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo)
     
    EncKeyWithID(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo, org.bouncycastle.asn1.ASN1UTF8String str)
     
    EncKeyWithID(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo, org.bouncycastle.asn1.x509.GeneralName generalName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1Encodable
     
     
    org.bouncycastle.asn1.pkcs.PrivateKeyInfo
     
    boolean
     
    boolean
     
    org.bouncycastle.asn1.ASN1Primitive
    EncKeyWithID ::= SEQUENCE { privateKey PrivateKeyInfo, identifier CHOICE { string UTF8String, generalName GeneralName } OPTIONAL }

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EncKeyWithID

      public EncKeyWithID(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo)
    • EncKeyWithID

      public EncKeyWithID(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo, org.bouncycastle.asn1.ASN1UTF8String str)
    • EncKeyWithID

      public EncKeyWithID(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo, org.bouncycastle.asn1.x509.GeneralName generalName)
  • Method Details

    • getInstance

      public static EncKeyWithID getInstance(Object o)
    • getPrivateKey

      public org.bouncycastle.asn1.pkcs.PrivateKeyInfo getPrivateKey()
    • hasIdentifier

      public boolean hasIdentifier()
    • isIdentifierUTF8String

      public boolean isIdentifierUTF8String()
    • getIdentifier

      public org.bouncycastle.asn1.ASN1Encodable getIdentifier()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
       EncKeyWithID ::= SEQUENCE {
            privateKey           PrivateKeyInfo,
            identifier CHOICE {
               string               UTF8String,
               generalName          GeneralName
           } OPTIONAL
       }
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      Returns:
      an ASN.1 primitive composition of this EncKeyWithID.