Class IssacCERTSTATUS

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class IssacCERTSTATUS
    extends java.lang.Object
    implements java.io.Closeable
    인증서들의 상태 정보를 나타내는 클래스
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int GOOD  
      static int REVOCATED  
      static int UNKNOWN  
    • Constructor Summary

      Constructors 
      Constructor Description
      IssacCERTSTATUS()
      인증서 상태정보를 나타내는 IssacCERTSTATUS 객체를 생성한다.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()  
      void Delete()
      Deprecated.
      Resource Leak 의 효율적인 관리를 위해 close() 를 사용할 것을 권장함.
      void GetCertStatus​(IssacOCSPRESPONSE ocspRsp)
      서버로부터 수신된 검증 응답 정보인 ocsp_rsp로부터 인증서의 상태 정보와 폐지 되었을 경우 그 시각과 사유, CRL 마지막 갱신시간과 다음 갱신 시간 등의 정보를 추출해 내서 certstatus 정보를 설정한다.
      int GetSingleStatus​(int nSeq)
      여러 개의 폐지 정보 검증 요청 인증서 중에 nSeq번째의 인증서에 대한 폐지 정보를 알고 싶을 때 사용하는 함수다.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IssacCERTSTATUS

        public IssacCERTSTATUS()
                        throws IssacSDKException
        인증서 상태정보를 나타내는 IssacCERTSTATUS 객체를 생성한다.

        Note: 사용이 끝나면 close()를 호출해야 한다.

        Throws:
        IssacSDKException - 오류 발생
        See Also:
        close()
    • Method Detail

      • GetCertStatus

        public void GetCertStatus​(IssacOCSPRESPONSE ocspRsp)
                           throws IssacSDKException
        서버로부터 수신된 검증 응답 정보인 ocsp_rsp로부터 인증서의 상태 정보와 폐지 되었을 경우 그 시각과 사유, CRL 마지막 갱신시간과 다음 갱신 시간 등의 정보를 추출해 내서 certstatus 정보를 설정한다.

        GetSignleStatus를 통해 특정 인증서의 상태를 가져올 수 있다.

        Parameters:
        ocspRsp - [IN] 응답 정보인 IssacOCSPRESPONSE 객체
        Throws:
        IssacSDKException - 오류 발생
        See Also:
        IssacOCSPRESPONSE(), GetSingleStatus(int)
      • GetSingleStatus

        public int GetSingleStatus​(int nSeq)
                            throws IssacSDKException
        여러 개의 폐지 정보 검증 요청 인증서 중에 nSeq번째의 인증서에 대한 폐지 정보를 알고 싶을 때 사용하는 함수다. N개를 요청했으면 nSeq는 0부터 N-1까지 입력할 수 있다.
        Parameters:
        nSeq - [IN] 요청 인증서 집합 중 몇 번째를 나타내는 인덱스. 즉 4개를 요청했는데 nSeq = 1을 넣었다면 두 번째 것에 대한 응답을 알고 싶은 것이다.
        Returns:
        해당 인증서의 상태 [ GOOD (1), REVOCATED (2), UNKNOWN (3) ]
        Throws:
        IssacSDKException - 오류 발생
        See Also:
        GetCertStatus(IssacOCSPRESPONSE)
      • Delete

        public void Delete()
                    throws IssacSDKException
        Deprecated.
        Resource Leak 의 효율적인 관리를 위해 close() 를 사용할 것을 권장함.
        인증서 상태정보를 나타내는 IssacCERTSTATUS 객체의 데이터를 메모리에서 삭제한다.
        Throws:
        IssacSDKException - 오류 발생
        See Also:
        IssacCERTSTATUS()
      • close

        public void close()
                   throws IssacSDKException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        IssacSDKException