public class SignerInfoWithPkey
extends org.bouncycastle.asn1.ASN1Encodable
Constructor and Description |
---|
SignerInfoWithPkey(org.bouncycastle.asn1.ASN1Sequence seq) |
SignerInfoWithPkey(org.bouncycastle.asn1.DERInteger version,
org.bouncycastle.asn1.pkcs.IssuerAndSerialNumber issuerAndSerialNumber,
org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgorithm,
org.bouncycastle.asn1.ASN1Set authenticatedAttributes,
org.bouncycastle.asn1.x509.AlgorithmIdentifier digEncryptionAlgorithm,
org.bouncycastle.asn1.ASN1OctetString encryptedDigest,
org.bouncycastle.asn1.ASN1Set unauthenticatedAttributes) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(int atrType,
org.bouncycastle.asn1.DEREncodable value)
c: PKCS7_add_attribute
|
void |
addSignedAttribute(int atrType,
org.bouncycastle.asn1.DEREncodable value)
c: PKCS7_add_signed_attribute
|
SignerInfoWithPkey |
dup() |
static org.bouncycastle.asn1.DEREncodable |
getAttribute(org.bouncycastle.asn1.ASN1Set sk,
int nid)
c: static get_attribute
|
org.bouncycastle.asn1.DEREncodable |
getAttribute(int nid)
c: PKCS7_get_attribute
|
org.bouncycastle.asn1.ASN1Set |
getAuthenticatedAttributes() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithm() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestEncryptionAlgorithm() |
org.bouncycastle.asn1.ASN1OctetString |
getEncryptedDigest() |
static SignerInfoWithPkey |
getInstance(java.lang.Object o) |
org.bouncycastle.asn1.pkcs.IssuerAndSerialNumber |
getIssuerAndSerialNumber() |
java.security.PrivateKey |
getPkey()
Get the
Pkey value. |
org.bouncycastle.asn1.DEREncodable |
getSignedAttribute(int nid)
c: PKCS7_get_signed_attribute
|
org.bouncycastle.asn1.ASN1Set |
getUnauthenticatedAttributes() |
org.bouncycastle.asn1.DERInteger |
getVersion() |
void |
set(X509AuxCertificate x509,
java.security.PrivateKey pkey,
java.security.MessageDigest dgst) |
void |
setAuthenticatedAttributes(org.bouncycastle.asn1.ASN1Set authAttr) |
void |
setEncryptedDigest(org.bouncycastle.asn1.ASN1OctetString encryptedDigest) |
void |
setPkey(java.security.PrivateKey newPkey)
Set the
Pkey value. |
void |
setUnauthenticatedAttributes(org.bouncycastle.asn1.ASN1Set unauthAttr) |
org.bouncycastle.asn1.DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
public SignerInfoWithPkey(org.bouncycastle.asn1.DERInteger version, org.bouncycastle.asn1.pkcs.IssuerAndSerialNumber issuerAndSerialNumber, org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgorithm, org.bouncycastle.asn1.ASN1Set authenticatedAttributes, org.bouncycastle.asn1.x509.AlgorithmIdentifier digEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedDigest, org.bouncycastle.asn1.ASN1Set unauthenticatedAttributes)
public SignerInfoWithPkey(org.bouncycastle.asn1.ASN1Sequence seq)
public static SignerInfoWithPkey getInstance(java.lang.Object o)
public SignerInfoWithPkey dup()
public org.bouncycastle.asn1.DERInteger getVersion()
public org.bouncycastle.asn1.pkcs.IssuerAndSerialNumber getIssuerAndSerialNumber()
public org.bouncycastle.asn1.ASN1Set getAuthenticatedAttributes()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
public org.bouncycastle.asn1.ASN1OctetString getEncryptedDigest()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestEncryptionAlgorithm()
public org.bouncycastle.asn1.ASN1Set getUnauthenticatedAttributes()
public void set(X509AuxCertificate x509, java.security.PrivateKey pkey, java.security.MessageDigest dgst) throws PKCS7Exception
PKCS7Exception
public org.bouncycastle.asn1.DERObject toASN1Object()
SignerInfo ::= SEQUENCE { version Version, issuerAndSerialNumber IssuerAndSerialNumber, digestAlgorithm DigestAlgorithmIdentifier, authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, encryptedDigest EncryptedDigest, unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL } EncryptedDigest ::= OCTET STRING DigestAlgorithmIdentifier ::= AlgorithmIdentifier DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
toASN1Object
in class org.bouncycastle.asn1.ASN1Encodable
public final java.security.PrivateKey getPkey()
Pkey
value.PrivateKey
valuepublic final void setPkey(java.security.PrivateKey newPkey)
Pkey
value.newPkey
- The new Pkey value.public void setAuthenticatedAttributes(org.bouncycastle.asn1.ASN1Set authAttr)
public void setUnauthenticatedAttributes(org.bouncycastle.asn1.ASN1Set unauthAttr)
public void setEncryptedDigest(org.bouncycastle.asn1.ASN1OctetString encryptedDigest)
public org.bouncycastle.asn1.DEREncodable getSignedAttribute(int nid)
public org.bouncycastle.asn1.DEREncodable getAttribute(int nid)
public static org.bouncycastle.asn1.DEREncodable getAttribute(org.bouncycastle.asn1.ASN1Set sk, int nid)
public void addSignedAttribute(int atrType, org.bouncycastle.asn1.DEREncodable value)
public void addAttribute(int atrType, org.bouncycastle.asn1.DEREncodable value)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.