Bouncy Castle Cryptography 1.46

org.bouncycastle.asn1.crmf
Class EncKeyWithID

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.crmf.EncKeyWithID
All Implemented Interfaces:
DEREncodable

public class EncKeyWithID
extends ASN1Encodable


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
EncKeyWithID(PrivateKeyInfo privKeyInfo)
           
EncKeyWithID(PrivateKeyInfo privKeyInfo, DERUTF8String str)
           
EncKeyWithID(PrivateKeyInfo privKeyInfo, GeneralName generalName)
           
 
Method Summary
 ASN1Encodable getIdentifier()
           
static EncKeyWithID getInstance(java.lang.Object o)
           
 PrivateKeyInfo getPrivateKey()
           
 boolean hasIdentifier()
           
 boolean isIdentifierUTF8String()
           
 DERObject toASN1Object()
           EncKeyWithID ::= SEQUENCE { privateKey PrivateKeyInfo, identifier CHOICE { string UTF8String, generalName GeneralName } OPTIONAL }
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncKeyWithID

public EncKeyWithID(PrivateKeyInfo privKeyInfo)

EncKeyWithID

public EncKeyWithID(PrivateKeyInfo privKeyInfo,
                    DERUTF8String str)

EncKeyWithID

public EncKeyWithID(PrivateKeyInfo privKeyInfo,
                    GeneralName generalName)
Method Detail

getInstance

public static EncKeyWithID getInstance(java.lang.Object o)

getPrivateKey

public PrivateKeyInfo getPrivateKey()

hasIdentifier

public boolean hasIdentifier()

isIdentifierUTF8String

public boolean isIdentifierUTF8String()

getIdentifier

public ASN1Encodable getIdentifier()

toASN1Object

public DERObject toASN1Object()
 EncKeyWithID ::= SEQUENCE {
      privateKey           PrivateKeyInfo,
      identifier CHOICE {
         string               UTF8String,
         generalName          GeneralName
     } OPTIONAL
 }
 

Specified by:
toASN1Object in class ASN1Encodable
Returns:

Bouncy Castle Cryptography 1.46