org.bouncycastle.asn1.crmf.POPOPrivKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-jdk15 Show documentation
Show all versions of bcprov-jdk15 Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.5.
package org.bouncycastle.asn1.crmf;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1Choice;
import org.bouncycastle.asn1.DERObject;
public class POPOPrivKey
extends ASN1Encodable
implements ASN1Choice
{
private DERObject obj;
private POPOPrivKey(DERObject obj)
{
this.obj = obj;
}
public static ASN1Encodable getInstance(ASN1TaggedObject tagged, boolean explicit)
{
return new POPOPrivKey(tagged.getObject()); // must be explictly tagged as choice
}
/**
*
* POPOPrivKey ::= CHOICE {
* thisMessage [0] BIT STRING, -- Deprecated
* -- possession is proven in this message (which contains the private
* -- key itself (encrypted for the CA))
* subsequentMessage [1] SubsequentMessage,
* -- possession will be proven in a subsequent message
* dhMAC [2] BIT STRING, -- Deprecated
* agreeMAC [3] PKMACValue,
* encryptedKey [4] EnvelopedData }
*
*/
public DERObject toASN1Object()
{
return obj;
}
}