org.bouncycastle.asn1.crmf
Class EncKeyWithID
java.lang.Object
|
+--org.bouncycastle.asn1.ASN1Object
|
+--org.bouncycastle.asn1.crmf.EncKeyWithID
- All Implemented Interfaces:
- ASN1Encodable, Encodable
- public class EncKeyWithID
- extends ASN1Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
EncKeyWithID
public EncKeyWithID(PrivateKeyInfo privKeyInfo)
EncKeyWithID
public EncKeyWithID(PrivateKeyInfo privKeyInfo,
ASN1UTF8String str)
EncKeyWithID
public EncKeyWithID(PrivateKeyInfo privKeyInfo,
GeneralName generalName)
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()
toASN1Primitive
public ASN1Primitive toASN1Primitive()
- EncKeyWithID ::= SEQUENCE {
privateKey PrivateKeyInfo,
identifier CHOICE {
string UTF8String,
generalName GeneralName
} OPTIONAL
}
- Overrides:
toASN1Primitive
in class ASN1Object
- Returns:
- an ASN.1 primitive composition of this EncKeyWithID.