|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.x509.ocsp.UnknownInfo
This class implements the OCSP type UnknownInfo.
If an OCSP server does not know about the status of the certificate for which information is requested, it responds with the status "Unknown" (see RFC 2560):
CertStatus ::= CHOICE { good [0] IMPLICIT NULL, revoked [1] IMPLICIT RevokedInfo, unknown [2] IMPLICIT UnknownInfo } UnknownInfo ::= NULL -- this can be replaced with an enumerationSince the NULL UnknownInfo can be replaced by an enumeration, this class provides the alternative of supplying an int value when
creating
an UnknownInfo. In this case the interpretation
of the ENUMERATED UnknownInfo is left to the application.
However, to support this ENUMERATED choice, a work around is
required by class CertStatus
for
parsing an UnknownInfo since the "unknown" component is implicitly tagged not
allowing a choice for the UnknownInfo:
CertStatus ::= CHOICE {
good [0] IMPLICIT NULL,
revoked [1] IMPLICIT RevokedInfo,
unknown [2] IMPLICIT UnknownInfo }
For creating a cert status for an UnknownInfo simply call the
corresponding constructor of class CertStatus
:
CertStatus certStatus = new CertStatus(new UnknownInfo());
CertStatus
Constructor Summary | |
UnknownInfo()
Default constructor. |
|
UnknownInfo(ASN1Object obj)
Creates an UnknownInfo from an ASN1Object. |
|
UnknownInfo(int value)
Creates an UnknownInfo from the given value to be represented as ASN.1 ENUMERATED. |
Method Summary | |
Object |
getValue()
Returns the value of this UnknownInfo. |
ASN1Object |
toASN1Object()
Returns this UnknownInfo as an ASN1Object. |
String |
toString()
Gives a String representation of this UnknownInfo. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnknownInfo()
public UnknownInfo(int value)
value
- the value that shall be represented by this enumeration
UnknownInfopublic UnknownInfo(ASN1Object obj) throws CodingException
obj
- the UnknownInfo as ASN1ObjectCodingException
- if the ASN1Object has the wrong formatMethod Detail |
public ASN1Object toASN1Object()
public Object getValue()
public String toString()
toString
in class Object
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |