Methods Summary |
---|
public org.bouncycastle.asn1.ASN1OctetString | getEncryptedKey()
return encryptedKey;
|
public static org.bouncycastle.asn1.cms.KeyTransRecipientInfo | getInstance(java.lang.Object obj)return a KeyTransRecipientInfo object from the given object.
if (obj == null || obj instanceof KeyTransRecipientInfo)
{
return (KeyTransRecipientInfo)obj;
}
if(obj instanceof ASN1Sequence)
{
return new KeyTransRecipientInfo((ASN1Sequence)obj);
}
throw new IllegalArgumentException(
"Illegal object in KeyTransRecipientInfo: " + obj.getClass().getName());
|
public org.bouncycastle.asn1.x509.AlgorithmIdentifier | getKeyEncryptionAlgorithm()
return keyEncryptionAlgorithm;
|
public RecipientIdentifier | getRecipientIdentifier()
return rid;
|
public org.bouncycastle.asn1.DERInteger | getVersion()
return version;
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
KeyTransRecipientInfo ::= SEQUENCE {
version CMSVersion, -- always set to 0 or 2
rid RecipientIdentifier,
keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier,
encryptedKey EncryptedKey
}
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(version);
v.add(rid);
v.add(keyEncryptionAlgorithm);
v.add(encryptedKey);
return new DERSequence(v);
|