Class SignerInfo
- java.lang.Object
-
- org.apache.harmony.security.pkcs7.SignerInfo
-
public final class SignerInfo extends Object
As defined in PKCS #7: Cryptographic Message Syntax Standard (http://www.ietf.org/rfc/rfc2315.txt) SignerInfo ::= SEQUENCE { version Version, issuerAndSerialNumber IssuerAndSerialNumber, digestAlgorithm DigestAlgorithmIdentifier, authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, encryptedDigest EncryptedDigest, unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL }
-
-
Field Summary
Fields Modifier and Type Field Description static ASN1SequenceASN1static ASN1SequenceISSUER_AND_SERIAL_NUMBER
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AttributeTypeAndValue>getAuthenticatedAttributes()StringgetDigestAlgorithm()StringgetDigestAlgorithmName()StringgetDigestEncryptionAlgorithm()StringgetDigestEncryptionAlgorithmName()byte[]getEncodedAuthenticatedAttributes()Returns the non-IMPLICIT ASN.1 encoding of the "authAttrs" from this SignerInfo.byte[]getEncryptedDigest()X500PrincipalgetIssuer()BigIntegergetSerialNumber()StringtoString()Returns a string containing a concise, human-readable description of this object.
-
-
-
Field Detail
-
ISSUER_AND_SERIAL_NUMBER
public static final ASN1Sequence ISSUER_AND_SERIAL_NUMBER
-
ASN1
public static final ASN1Sequence ASN1
-
-
Method Detail
-
getIssuer
public X500Principal getIssuer()
-
getSerialNumber
public BigInteger getSerialNumber()
-
getDigestAlgorithm
public String getDigestAlgorithm()
-
getDigestAlgorithmName
public String getDigestAlgorithmName()
-
getDigestEncryptionAlgorithm
public String getDigestEncryptionAlgorithm()
-
getDigestEncryptionAlgorithmName
public String getDigestEncryptionAlgorithmName()
-
getAuthenticatedAttributes
public List<AttributeTypeAndValue> getAuthenticatedAttributes()
-
getEncodedAuthenticatedAttributes
public byte[] getEncodedAuthenticatedAttributes()
Returns the non-IMPLICIT ASN.1 encoding of the "authAttrs" from this SignerInfo. That is, it will return as the encoding of a generic ASN.1 SET.
-
getEncryptedDigest
public byte[] getEncryptedDigest()
-
toString
public String toString()
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-
-