com.netscape.cmsutil.ocsp
Class NameID
java.lang.Object
com.netscape.cmsutil.ocsp.NameID
- All Implemented Interfaces:
- ResponderID, org.mozilla.jss.asn1.ASN1Value
public class NameID
- extends java.lang.Object
- implements ResponderID
RFC 2560:
ResponderID ::= CHOICE {
byName [1] EXPLICIT Name,
byKey [2] EXPLICIT KeyHash }
- Version:
- $Revision: 1213 $ $Date: 2010-08-18 11:44:45 -0700 (Wed, 18 Aug 2010) $
Nested Class Summary |
static class |
NameID.Template
A Template for decoding ResponseBytes . |
Constructor Summary |
NameID(org.mozilla.jss.pkix.primitive.Name n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameID
public NameID(org.mozilla.jss.pkix.primitive.Name n)
getTag
public org.mozilla.jss.asn1.Tag getTag()
- Specified by:
getTag
in interface org.mozilla.jss.asn1.ASN1Value
encode
public void encode(org.mozilla.jss.asn1.Tag tag,
java.io.OutputStream os)
throws java.io.IOException
- Specified by:
encode
in interface org.mozilla.jss.asn1.ASN1Value
- Throws:
java.io.IOException
encode
public void encode(java.io.OutputStream os)
throws java.io.IOException
- Specified by:
encode
in interface org.mozilla.jss.asn1.ASN1Value
- Throws:
java.io.IOException
getName
public org.mozilla.jss.pkix.primitive.Name getName()
getTemplate
public static NameID.Template getTemplate()