Class IssacPKIMESSAGE

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

    public class IssacPKIMESSAGE
    extends java.lang.Object
    implements java.io.Closeable
    PKIMessage(RFC2510)를 처리하는 클래스
    • Constructor Summary

      Constructors 
      Constructor Description
      IssacPKIMESSAGE()
      생성자
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()  
      void Delete()
      Deprecated.
      Resource Leak 의 효율적인 관리를 위해 close() 를 사용할 것을 권장함.
      byte[] getPkiContext()
      Deprecated.
      참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
      byte[] getPkiMessage()
      Deprecated.
      참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
      static int IssacPKIMESSAGE_CMP_GetMsgType​(byte[] pkimsg)
      PKIMessage의 타입을 가져온다.
      static byte[] IssacPKIMESSAGE_CMP_MakeConfirm​(byte[] pkimessage, byte[] pkicontext)
      CA/RA에 전송할 CONFIRM 메시지를 생성한다.
      byte[] IssacPKIMESSAGE_CMP_MakeInitialReq​(byte[] pkimessage, byte[] pkicontext, byte[] pkicertreqs, byte[] sender_cert, byte[] sender_key, java.lang.String sender_id, java.lang.String sender_authcode, byte[] recip_cert)
      CA/RA에게 전송할 인증서 발급을 위한 IR 메시지를 생성한다.
      static byte[] IssacPKIMESSAGE_CMP_MakeKeyUpdateReq​(byte[] pkimessage, byte[] pkicontext, byte[] pkicertreqs, byte[] sender_cert, byte[] sender_key, byte[] recip_cert)
      CA/RA에게 전송할 인증서 갱신을 위한 KUR 메시지를 생성한다.
      static byte[] IssacPKIMESSAGE_CMP_ResolveInitialRep​(byte[] pkicertreps, byte[] pkimessage, byte[] pkicontext, long nowTime)
      CA/RA로부터 받은 IP 메시지를 해석한다.
      static byte[] IssacPKIMESSAGE_CMP_ResolveKeyUpdataRep​(byte[] pkimessage, byte[] pkicontext, long nowTime)
      CA/RA로부터 받은 KUP 메시지를 해석한다.
      static byte[] IssacPKIMESSAGE_CMP_ResolveKeyUpdataReq​(byte[] pkicontext, byte[] pkimessage, byte[] recip_cert, byte[] sender_cert, long nowTime)
      RA/Client로부터 받은 KUR 메시지를 해석한다.
      void setPkiContext​(byte[] pkictx)
      Deprecated.
      참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
      void setPkiMessage​(byte[] pkimsg)
      Deprecated.
      참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getPkiMessage

        public byte[] getPkiMessage()
        Deprecated.
        참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
        PKIMessage의 참조값을 가져온다.
        Returns:
        PKIMessage의 참조값
      • getPkiContext

        public byte[] getPkiContext()
        Deprecated.
        참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
        PKICONTEXT의 참조값을 가져온다.
        Returns:
        PKICONTEXT의 참조값
      • setPkiMessage

        public void setPkiMessage​(byte[] pkimsg)
                           throws IssacSDKException
        Deprecated.
        참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
        PKIMessage의 참조값을 설정한다.
        Parameters:
        pkimsg - [IN] PKIMessage의 참조값
        Throws:
        IssacSDKException - 오류 발생
      • setPkiContext

        public void setPkiContext​(byte[] pkictx)
                           throws IssacSDKException
        Deprecated.
        참조값은 바이너리 데이터가 아니므로 외부에선 절대 사용하지 않도록 한다!
        PKICONTEXT의 참조값을 설정한다.
        Parameters:
        pkictx - [IN] PKICONTEXT의 참조값
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_GetMsgType

        public static int IssacPKIMESSAGE_CMP_GetMsgType​(byte[] pkimsg)
                                                  throws IssacSDKException
        PKIMessage의 타입을 가져온다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkimsg - [IN] PKIMessage의 참조값
        Returns:
        PKIMessage의 타입 (0~18. 19 : ERROR)
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_MakeInitialReq

        public byte[] IssacPKIMESSAGE_CMP_MakeInitialReq​(byte[] pkimessage,
                                                         byte[] pkicontext,
                                                         byte[] pkicertreqs,
                                                         byte[] sender_cert,
                                                         byte[] sender_key,
                                                         java.lang.String sender_id,
                                                         java.lang.String sender_authcode,
                                                         byte[] recip_cert)
                                                  throws IssacSDKException
        CA/RA에게 전송할 인증서 발급을 위한 IR 메시지를 생성한다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkimessage - [OUT] PKIMessage의 참조값
        pkicontext - [OUT] PKICONTEXT의 참조값
        pkicertreqs - [IN] 인증서 생성 요청 메시지 참조값
        sender_cert - [IN] 송신자(RA/Client)의 인증서. ID 사용시 NULL 가능
        sender_key - [IN] 송신자(RA/Client)의 개인키. ID 사용시 NULL 가능
        sender_id - [IN] 송신자(Client)의 ID, 인증서 사용시 NULL 가능
        sender_authcode - [IN] 송신자(Client)의 인증코드, 인증서 사용시 NULL 가능
        recip_cert - [IN] 수신 Authority(CA/RA)의 인증서
        Returns:
        PKIMessage의 참조값
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_ResolveInitialRep

        public static byte[] IssacPKIMESSAGE_CMP_ResolveInitialRep​(byte[] pkicertreps,
                                                                   byte[] pkimessage,
                                                                   byte[] pkicontext,
                                                                   long nowTime)
                                                            throws IssacSDKException
        CA/RA로부터 받은 IP 메시지를 해석한다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkicertreps - [OUT] CA가 발급한 사용자의 인증서 응답들
        pkimessage - [IN] CA/RA가 보낸 IP PKIMessage의 참조값
        pkicontext - [IN] ISSAC_CMP_MakeInitialReq()에서 구한 PKICONTEXT의 참조값
        nowTime - [IN] 현재 시각(0이면 System의 현재 시간값 사용)
        Returns:
        CA가 발급한 사용자의 인증서 응답들
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_MakeKeyUpdateReq

        public static byte[] IssacPKIMESSAGE_CMP_MakeKeyUpdateReq​(byte[] pkimessage,
                                                                  byte[] pkicontext,
                                                                  byte[] pkicertreqs,
                                                                  byte[] sender_cert,
                                                                  byte[] sender_key,
                                                                  byte[] recip_cert)
                                                           throws IssacSDKException
        CA/RA에게 전송할 인증서 갱신을 위한 KUR 메시지를 생성한다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkimessage - [OUT] 생성된 KUR PKIMessage
        pkicontext - [OUT] PKIMessage 처리시에 필요한 데이터들을 저장하는 구조체
        pkicertreqs - [IN] 인증서 발급 요청 메시지
        sender_cert - [IN] 송신자(RA/Client)의 인증서. ID 사용시 NULL 가능
        sender_key - [IN] 송신자(RA/Client)의 개인키. ID 사용시 NULL 가능
        recip_cert - [IN] 수신 Authority(CA or RA)의 인증서
        Returns:
        인증서 갱신을 위한 KUR 메시지
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_ResolveKeyUpdataReq

        public static byte[] IssacPKIMESSAGE_CMP_ResolveKeyUpdataReq​(byte[] pkicontext,
                                                                     byte[] pkimessage,
                                                                     byte[] recip_cert,
                                                                     byte[] sender_cert,
                                                                     long nowTime)
                                                              throws IssacSDKException
        RA/Client로부터 받은 KUR 메시지를 해석한다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkicontext - [OUT] PKIMessage 처리시에 필요한 데이터들을 저장하는 구조체
        pkimessage - [IN] 수신한 pki message
        recip_cert - [IN] 수신 Authority(CA or RA)의 인증서
        sender_cert - [IN] 송신자(RA/Client)의 인증서. ID 사용시 NULL 가능
        nowTime - [IN] 검증 시간. 0을 주면 현재 시간으로 검증
        Returns:
        인증서 생성 요청 메시지 객체의 참조값
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_ResolveKeyUpdataRep

        public static byte[] IssacPKIMESSAGE_CMP_ResolveKeyUpdataRep​(byte[] pkimessage,
                                                                     byte[] pkicontext,
                                                                     long nowTime)
                                                              throws IssacSDKException
        CA/RA로부터 받은 KUP 메시지를 해석한다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkimessage - [IN] CA가 보낸 KUP PKIMessage
        pkicontext - [IN] PKIMessage 처리시에 필요한 데이터들을 저장하는 구조체
        nowTime - [IN] 현재 시각(0이면 System의 현재 시간값 사용)
        Returns:
        인증서 생성 응답 메시지 객체의 참조값
        Throws:
        IssacSDKException - 오류 발생
      • IssacPKIMESSAGE_CMP_MakeConfirm

        public static byte[] IssacPKIMESSAGE_CMP_MakeConfirm​(byte[] pkimessage,
                                                             byte[] pkicontext)
                                                      throws IssacSDKException
        CA/RA에 전송할 CONFIRM 메시지를 생성한다.

        Note: TODO(jyha) : 참조값을 사용하지 않는 API 개발 필요

        Parameters:
        pkimessage - [OUT] 생성된 PKICONFIRM 메시지
        pkicontext - [IN] PKIMessage 처리시에 필요한 데이터들을 저장하고 있는 구조체
        Returns:
        생성된 PKICONFIRM 메시지
        Throws:
        IssacSDKException - 오류 발생
      • Delete

        public void Delete()
                    throws IssacSDKException
        Deprecated.
        Resource Leak 의 효율적인 관리를 위해 close() 를 사용할 것을 권장함.
        PKIMessage의 객체를 메모리에서 삭제한다.
        Throws:
        IssacSDKException - 오류 발생
      • close

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