JCaosLib
V1.4.4.0

com.dreamsecurity.jcaos.ocsp
Class SingleResponseGenerator

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

public class SingleResponseGenerator
extends java.lang.Object

»óÅÂÈ®ÀÎÀ» ¿äûÇÑ °¢ ÀÎÁõ¼­¿¡ ´ëÇÑ °á°ú¸¦ »ý¼ºÇϱâ À§ÇÑ Å¬·¡½ºÀÌ´Ù.

SigleResponse ÀÇ ASN.1 Æ÷¸ËÀº ´ÙÀ½°ú °°´Ù.

 SingleResponse ::= SEQUENCE {
    certID                       CertID,
    certStatus                   CertStatus,
    thisUpdate                   GeneralizedTime,
    nextUpdate           [0]     EXPLICIT GeneralizedTime OPTIONAL,
    singleExtensions     [1]     EXPLICIT Extensions 		OPTIONAL }
 

Since:
1.0.0.0

Field Summary
static int CERT_STATUS_GOOD
          ÀÎÁõ¼­ »óŰ¡ À¯È¿ÇÔ
static int CERT_STATUS_REVOKED
          ÀÎÁõ¼­°¡ ÆóÁöµÊ
static int CERT_STATUS_UNKNOWN
          ¾Ë ¼ö ¾ø´Â ÀÎÁõ¼­ÀÓ
static int REVOCATION_REASON_AA_COMPROMISE
          ÆóÁö »çÀ¯. aACompromise
static int REVOCATION_REASON_AFFILIATION_CHANGED
          ÆóÁö »çÀ¯. affiliationChanged
static int REVOCATION_REASON_CA_COMPROMISE
          ÆóÁö »çÀ¯. cACompromise
static int REVOCATION_REASON_CERTIFICATE_HOLD
          ÆóÁö »çÀ¯. certificateHold
static int REVOCATION_REASON_CESSATION_OF_OPERATION
          ÆóÁö »çÀ¯. cessationOfOperation
static int REVOCATION_REASON_KEY_COMPROMISE
          ÆóÁö »çÀ¯. keyCompromise
static int REVOCATION_REASON_PRIVILIEGE_WITH_DRAWN
          ÆóÁö »çÀ¯. privilegeWithdrawn
static int REVOCATION_REASON_REMOVE_FROM_CRL
          ÆóÁö »çÀ¯. removeFromCRL
static int REVOCATION_REASON_SUPERSEDED
          ÆóÁö »çÀ¯. superseded
static int REVOCATION_REASON_UNSPECIFIED
          ÆóÁö »çÀ¯. unspecified
 
Constructor Summary
SingleResponseGenerator()
          SingleResponseGenerator °´Ã¼¸¦ »ý¼ºÇÑ´Ù.
 
Method Summary
 SingleResponse generate()
          ÀÎÁõ¼­ »óÅ Á¤º¸¸¦ »ý¼ºÇÑ´Ù.
 void setCertID(CertID certID)
          »óÅ ȮÀÎÇÑ ÀÎÁõ¼­ ½Äº°ÀÚ¸¦ ÁöÁ¤ÇÑ´Ù.
 void setCertStatus(int certStatus)
          ÀÎÁõ¼­ »óÅ Á¤º¸
 void setNextUpdate(java.util.Date nextUpdate)
          ÀÎÁõ¼­ »óÅ Á¤º¸ ´ÙÀ½ °»½Å ÀϽø¦ ¼³Á¤ÇÑ´Ù.
 void setRevokedInto(java.util.Date revocationTime, int revocationReason)
          ÀÎÁõ¼­°¡ ÆóÁöµÈ °æ¿ì ÀÎÁõ¼­ ÆóÁö ÀÏ½Ã¿Í ÆóÁö »çÀ¯¸¦ ÁöÁ¤ÇÑ´Ù.
 void setThisUpdate(java.util.Date thisUpdate)
          ÀÎÁõ¼­ »óÅÂÁ¤º¸ °»½Å ÀϽø¦ ¼³Á¤ÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CERT_STATUS_GOOD

public static final int CERT_STATUS_GOOD
ÀÎÁõ¼­ »óŰ¡ À¯È¿ÇÔ

See Also:
Constant Field Values

CERT_STATUS_REVOKED

public static final int CERT_STATUS_REVOKED
ÀÎÁõ¼­°¡ ÆóÁöµÊ

See Also:
Constant Field Values

CERT_STATUS_UNKNOWN

public static final int CERT_STATUS_UNKNOWN
¾Ë ¼ö ¾ø´Â ÀÎÁõ¼­ÀÓ

See Also:
Constant Field Values

REVOCATION_REASON_UNSPECIFIED

public static final int REVOCATION_REASON_UNSPECIFIED
ÆóÁö »çÀ¯. unspecified

See Also:
Constant Field Values

REVOCATION_REASON_KEY_COMPROMISE

public static final int REVOCATION_REASON_KEY_COMPROMISE
ÆóÁö »çÀ¯. keyCompromise

See Also:
Constant Field Values

REVOCATION_REASON_CA_COMPROMISE

public static final int REVOCATION_REASON_CA_COMPROMISE
ÆóÁö »çÀ¯. cACompromise

See Also:
Constant Field Values

REVOCATION_REASON_AFFILIATION_CHANGED

public static final int REVOCATION_REASON_AFFILIATION_CHANGED
ÆóÁö »çÀ¯. affiliationChanged

See Also:
Constant Field Values

REVOCATION_REASON_SUPERSEDED

public static final int REVOCATION_REASON_SUPERSEDED
ÆóÁö »çÀ¯. superseded

See Also:
Constant Field Values

REVOCATION_REASON_CESSATION_OF_OPERATION

public static final int REVOCATION_REASON_CESSATION_OF_OPERATION
ÆóÁö »çÀ¯. cessationOfOperation

See Also:
Constant Field Values

REVOCATION_REASON_CERTIFICATE_HOLD

public static final int REVOCATION_REASON_CERTIFICATE_HOLD
ÆóÁö »çÀ¯. certificateHold

See Also:
Constant Field Values

REVOCATION_REASON_REMOVE_FROM_CRL

public static final int REVOCATION_REASON_REMOVE_FROM_CRL
ÆóÁö »çÀ¯. removeFromCRL

See Also:
Constant Field Values

REVOCATION_REASON_PRIVILIEGE_WITH_DRAWN

public static final int REVOCATION_REASON_PRIVILIEGE_WITH_DRAWN
ÆóÁö »çÀ¯. privilegeWithdrawn

See Also:
Constant Field Values

REVOCATION_REASON_AA_COMPROMISE

public static final int REVOCATION_REASON_AA_COMPROMISE
ÆóÁö »çÀ¯. aACompromise

See Also:
Constant Field Values
Constructor Detail

SingleResponseGenerator

public SingleResponseGenerator()
SingleResponseGenerator °´Ã¼¸¦ »ý¼ºÇÑ´Ù.

Method Detail

setCertID

public void setCertID(CertID certID)
»óÅ ȮÀÎÇÑ ÀÎÁõ¼­ ½Äº°ÀÚ¸¦ ÁöÁ¤ÇÑ´Ù.

Parameters:
certID - ÀÎÁõ¼­ ½Äº°ÀÚ

setCertStatus

public void setCertStatus(int certStatus)
ÀÎÁõ¼­ »óÅ Á¤º¸

Parameters:
certStatus - ÀÎÁõ¼­ »óÅÂ

setRevokedInto

public void setRevokedInto(java.util.Date revocationTime,
                           int revocationReason)
ÀÎÁõ¼­°¡ ÆóÁöµÈ °æ¿ì ÀÎÁõ¼­ ÆóÁö ÀÏ½Ã¿Í ÆóÁö »çÀ¯¸¦ ÁöÁ¤ÇÑ´Ù.

Parameters:
revocationTime - ÆóÁö ÀϽÃ
revocationReason - ÆóÁö »çÀ¯

setThisUpdate

public void setThisUpdate(java.util.Date thisUpdate)
ÀÎÁõ¼­ »óÅÂÁ¤º¸ °»½Å ÀϽø¦ ¼³Á¤ÇÑ´Ù.

Parameters:
thisUpdate - °»½Å ÀϽÃ

setNextUpdate

public void setNextUpdate(java.util.Date nextUpdate)
ÀÎÁõ¼­ »óÅ Á¤º¸ ´ÙÀ½ °»½Å ÀϽø¦ ¼³Á¤ÇÑ´Ù.

Parameters:
nextUpdate - ÀÎÁõ¼­ »óÅ Á¤º¸ ´ÙÀ½ °»½Å ÀϽÃ

generate

public SingleResponse generate()
                        throws java.io.IOException
ÀÎÁõ¼­ »óÅ Á¤º¸¸¦ »ý¼ºÇÑ´Ù.

Returns:
ÀÎÁõ¼­ »óÅ Á¤º¸
Throws:
java.io.IOException - Á¤º¸ ó¸® ½ÇÆÐ ½Ã ¹ß»ý

JCaosLib
V1.4.4.0


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