com.netscape.cmsutil.ocsp
Class Signature
java.lang.Object
com.netscape.cmsutil.ocsp.Signature
- All Implemented Interfaces:
- org.mozilla.jss.asn1.ASN1Value
public class Signature
- extends java.lang.Object
- implements org.mozilla.jss.asn1.ASN1Value
RFC 2560:
Signature ::= SEQUENCE {
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING,
certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
$Revision: 14564 $ $Date: 2007-05-01 10:40:13 -0700 (Tue, 01 May 2007) $
Constructor Summary |
Signature(org.mozilla.jss.pkix.primitive.AlgorithmIdentifier signatureAlgorithm,
org.mozilla.jss.asn1.BIT_STRING signature,
org.mozilla.jss.asn1.SEQUENCE certs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Signature
public Signature(org.mozilla.jss.pkix.primitive.AlgorithmIdentifier signatureAlgorithm,
org.mozilla.jss.asn1.BIT_STRING signature,
org.mozilla.jss.asn1.SEQUENCE certs)
getSignatureAlgorithm
public org.mozilla.jss.pkix.primitive.AlgorithmIdentifier getSignatureAlgorithm()
getSignature
public org.mozilla.jss.asn1.BIT_STRING getSignature()
getCertificateCount
public int getCertificateCount()
getCertificateAt
public org.mozilla.jss.pkix.cert.Certificate getCertificateAt(int index)
getTag
public org.mozilla.jss.asn1.Tag getTag()
- Specified by:
getTag
in interface org.mozilla.jss.asn1.ASN1Value
encode
public void encode(java.io.OutputStream ostream)
throws java.io.IOException
- Specified by:
encode
in interface org.mozilla.jss.asn1.ASN1Value
- Throws:
java.io.IOException
encode
public void encode(org.mozilla.jss.asn1.Tag implicitTag,
java.io.OutputStream ostream)
throws java.io.IOException
- Specified by:
encode
in interface org.mozilla.jss.asn1.ASN1Value
- Throws:
java.io.IOException
getTemplate
public static Signature.Template getTemplate()