JCaosLib
V1.4.4.0

com.dreamsecurity.jcaos.ocsp
Class OCSPResponse

java.lang.Object
  extended bycom.dreamsecurity.jcaos.ocsp.OCSPResponse

public class OCSPResponse
extends java.lang.Object

OCSP ÀÀ´ä ¸Þ½ÃÁö(OCSPResponse)¸¦ ó¸®Çϱâ À§ÇÑ Å¬·¡½ºÀÌ´Ù.

OCSP ÀÀ´ä ¸Þ½ÃÁöÀÇ ASN.1 Æ÷¸ËÀº ´ÙÀ½°ú °°´Ù.

 OCSPResponse ::= SEQUENCE {
       responseStatus         OCSPResponseStatus,
       responseBytes          [0] EXPLICIT ResponseBytes OPTIONAL 
 }
 
 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
 }
 

Since:
1.0.0.0

Method Summary
 byte[] getEncoded()
          DER ÀÎÄÚµù µÇ¾îÀÖ´Â OCSP ÀÀ´ä ¸Þ½ÃÁö¸¦ ȹµæÇÑ´Ù.
static OCSPResponse getInstance(byte[] data)
          OCSP ÀÀ´ä ¸Þ½ÃÁö¸¦ ÀÔ·ÂÇÏ¿© OCSPResponse °´Ã¼·Î º¯È¯ÇÑ´Ù.
static OCSPResponse getInstance(java.lang.Object o)
          OCSP ÀÀ´ä ¸Þ½ÃÁö¸¦ ÀÔ·ÂÇÏ¿© OCSPResponse °´Ã¼·Î º¯È¯ÇÑ´Ù.
 Response getResponse()
          ÀÀ´ä ¸Þ½ÃÁö¸¦ È®ÀÎÇÑ´Ù.
 int getResponseStatus()
          ÀÀ´ä °á°ú¸¦ È®ÀÎÇÑ´Ù.
 com.dreamsecurity.jcaos.asn1.ocsp.OCSPResponse toASN1Object()
          ASN.1 ÇüÅÂÀÇ OCSPResponse¸¦ ȹµæÇÑ´Ù.
 void verify()
          ÀÀ´ä ¸Þ½ÃÁö¸¦ °ËÁõÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OCSPResponse getInstance(byte[] data)
                                throws java.io.IOException
OCSP ÀÀ´ä ¸Þ½ÃÁö¸¦ ÀÔ·ÂÇÏ¿© OCSPResponse °´Ã¼·Î º¯È¯ÇÑ´Ù.

Parameters:
data - DER ÀÎÄÚµùµÈ ÇüÅÂÀÇ OCSP ÀÀ´ä ¸Þ½ÃÁö
Throws:
java.io.IOException - I/O ¿¹¿Ü ¹ß»ý½Ã

getInstance

public static OCSPResponse getInstance(java.lang.Object o)
OCSP ÀÀ´ä ¸Þ½ÃÁö¸¦ ÀÔ·ÂÇÏ¿© OCSPResponse °´Ã¼·Î º¯È¯ÇÑ´Ù.

Parameters:
o - OCSP ÀÀ´ä ¸Þ½ÃÁö (ASN.1 ÇüÅÂ)

getEncoded

public byte[] getEncoded()
DER ÀÎÄÚµù µÇ¾îÀÖ´Â OCSP ÀÀ´ä ¸Þ½ÃÁö¸¦ ȹµæÇÑ´Ù.

Returns:
DER ÀÎÄÚµù µÇ¾îÀÖ´Â OCSP ÀÀ´ä ¸Þ½ÃÁö

toASN1Object

public com.dreamsecurity.jcaos.asn1.ocsp.OCSPResponse toASN1Object()
ASN.1 ÇüÅÂÀÇ OCSPResponse¸¦ ȹµæÇÑ´Ù.

Returns:
ASN.1 ÇüÅÂÀÇ OCSPResponse

getResponseStatus

public int getResponseStatus()
ÀÀ´ä °á°ú¸¦ È®ÀÎÇÑ´Ù.
status ÀǹÌ
0 successful
1 malformedRequest
2 internalError
3 tryLater
5 sigRequired
6 unauthorized

Returns:
ÀÀ´ä °á°ú

getResponse

public Response getResponse()
                     throws ParsingException,
                            java.io.IOException
ÀÀ´ä ¸Þ½ÃÁö¸¦ È®ÀÎÇÑ´Ù.

Returns:
ÀÀ´ä ¸Þ½ÃÁö
Throws:
ParsingException - Áö¿øµÇÁö ¾Ê´Â ÀÀ´ä ¸Þ½ÃÁö Á¾·ùÀÏ °æ¿ì¿¡ ¹ß»ý
java.io.IOException - µðÄÚµù ½ÇÆÐ½Ã ¹ß»ý

verify

public void verify()
            throws ParsingException,
                   java.io.IOException,
                   VerifyException,
                   java.security.SignatureException,
                   java.security.InvalidKeyException,
                   java.security.spec.InvalidKeySpecException,
                   java.security.NoSuchProviderException,
                   java.security.NoSuchAlgorithmException,
                   NotExistSignerCertException
ÀÀ´ä ¸Þ½ÃÁö¸¦ °ËÁõÇÑ´Ù.

Throws:
ParsingException - Áö¿øÇÏÁö ¾Ê´Â À̸§ Çü½ÄÀÌ ÀÖ´Â °æ¿ì¿¡ ¹ß»ý
java.io.IOException - µðÄÚµù ½ÇÆÐ½Ã ¹ß»ý
VerifyException - °ËÁõ ½ÇÆÐ½Ã ¹ß»ý
java.security.SignatureException - ÀϹÝÀûÀÎ ¼­¸í°ú °ü·ÃÇÑ ¿¹¿Ü »çÇ× ¹ß»ýÇÑ °æ¿ì ¹ß»ý
java.security.InvalidKeyException - ¾Ë°í¸®Áò¿¡ ´ëÇÑ ÀûÇÕÇÑ Å°(À߸øµÈ ÀÎÄÚµù, À߸øµÈ ±æÀÌ, ÃʱâÈ­ µÇÁö ¾ÊÀ½ µî)°¡ ¾Æ´Ñ °æ¿ì¿¡ ¹ß»ý
java.security.spec.InvalidKeySpecException - ÀûÇÕÇÏÁö ¾ÊÀº Ű Á¤º¸ÀÎ °æ¿ì¿¡ ¹ß»ý
java.security.NoSuchProviderException - Áö¿øÇÏÁö ¾Ê´Â ¾ÏÈ£ ¸ðµâ Á¦°øÀÚÀÏ °æ¿ì¿¡ ¹ß»ý
java.security.NoSuchAlgorithmException - Áö¿øÇÏÁö ¾Ê´Â ¾Ë°í¸®ÁòÀÏ °æ¿ì¿¡ ¹ß»ý
NotExistSignerCertException - ¼­¸íÀÚ ÀÎÁõ¼­°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì¿¡ ¹ß»ý

JCaosLib
V1.4.4.0


Copyright ¨Ï2007-2011 DreamSecurity Co.,Ltd . All rights reserved