OCSPResponseStatus.java
资源名称:security.rar [点击查看]
上传用户:lior1029
上传日期:2013-05-07
资源大小:209k
文件大小:1k
源码类别:
CA认证
开发平台:
Java
- package org.bouncycastle.asn1.ocsp;
- import org.bouncycastle.asn1.ASN1TaggedObject;
- import org.bouncycastle.asn1.DERObject;
- import org.bouncycastle.asn1.DEREncodable;
- import org.bouncycastle.asn1.DEREnumerated;
- public class OCSPResponseStatus
- implements DEREncodable
- {
- DEREnumerated status;
- public static OCSPResponseStatus getInstance(
- ASN1TaggedObject obj,
- boolean explicit)
- {
- return getInstance(DEREnumerated.getInstance(obj, explicit));
- }
- public static OCSPResponseStatus getInstance(
- Object obj)
- {
- if (obj == null || obj instanceof OCSPResponseStatus)
- {
- return (OCSPResponseStatus)obj;
- }
- throw new IllegalArgumentException("unknown object in factory");
- }
- /**
- * <pre>
- * OCSPResponseStatus ::= ENUMERATED {
- * successful (0), --Response has valid confirmations
- * malformedRequest (1), --Illegal confirmation request
- * internalError (2), --Internal error in issuer
- * tryLater (3), --Try again later
- * --(4) is not used
- * sigRequired (5), --Must sign the request
- * unauthorized (6) --Request unauthorized
- * }
- * </pre>
- */
- public DERObject getDERObject()
- {
- return status;
- }
- }