xecure.crypto
Class EnvelopeFile

java.lang.Object
  extended byxecure.crypto.EnvelopeFile

public class EnvelopeFile
extends java.lang.Object

ÀÌ Å¬·¡½º´Â È­ÀÏÀ» Envelope/DeEnvelope ÇÑ´Ù.

Since:
6.0 v100

Constructor Summary
EnvelopeFile(XecureConfig config)
          EnvelopeData object ¸¦ »ý¼ºÇÑ´Ù.
 
Method Summary
 int deEnvelopeFile(java.lang.String filePathIn, java.lang.String filePathOut)
          Enveloped FileÀ» DeEnvelopeÇÑ´Ù.
 int envelopeFile(byte[] cert, byte[] filePathIn, java.io.OutputStream out, boolean is_cms)
          FileÀ» EnvelopeÇÏ¿© ½ºÆ®¸²À¸·Î Ãâ·ÂÇÑ´Ù.
 int envelopeFile(java.lang.String cert, java.lang.String filePathIn, java.lang.String filePathOut)
          Enveloped FileÀ» »ý¼ºÇÑ´Ù.
 int envelopeFileCMS(java.lang.String cert, java.lang.String filePathIn, java.lang.String filePathOut)
          Enveloped FileÀ» »ý¼ºÇÑ´Ù.
 int getLastError()
          Envelope/DeEnvelope½Ã ¿¡·¯°¡ ¹ß»ýÇÑ °æ¿ì ¿¡·¯ ¹øÈ£¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
 java.lang.String getLastErrorMsg()
          Envelope/DeEnvelope½Ã ¿¡·¯°¡ ¹ß»ýÇÑ °æ¿ì ¿¡·¯ ¸Þ½ÃÁö¸¦ ¾òÀ» ¼ö ÀÖ´Ù.
 int keKeyDeEnvelopeFile(byte[] keKey, java.lang.String filePathIn, java.lang.String filePathOut)
          Enveloped FileÀ» DeEnvelopeÇÑ´Ù.
 int keKeyEnvelopeFile_CMS(byte[] keKey, java.lang.String filePathIn, java.lang.String filePathOut)
          Enveloped FileÀ» »ý¼ºÇÑ´Ù.
 int keKeyEnvelopeFile(byte[] keKey, java.lang.String filePathIn, java.lang.String filePathOut)
          Enveloped FileÀ» »ý¼ºÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvelopeFile

public EnvelopeFile(XecureConfig config)
EnvelopeData object ¸¦ »ý¼ºÇÑ´Ù. getLastError() °¡ 0 ÀÌ ¾Æ´Ñ °ªÀ» ¸®ÅÏÇÒ °æ¿ì¿¡´Â Envelope/DeEnvelopeµÈ ¸Þ½ÃÁö¿¡ ¹®Á¦°¡ ÀÖ´Â °æ¿ìÀÌ´Ù. getLastError() °¡ 0 À» ¸®ÅÏÇÒ °æ¿ì , Envelope/DeEnvelopeµÈ Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖ´Ù.

Parameters:
config - XecureConfig object
Since:
6.0 v100
Method Detail

getLastError

public int getLastError()
Envelope/DeEnvelope½Ã ¿¡·¯°¡ ¹ß»ýÇÑ °æ¿ì ¿¡·¯ ¹øÈ£¸¦ ¾òÀ» ¼ö ÀÖ´Ù.

Returns:
error number
Since:
6.0 v100

getLastErrorMsg

public java.lang.String getLastErrorMsg()
Envelope/DeEnvelope½Ã ¿¡·¯°¡ ¹ß»ýÇÑ °æ¿ì ¿¡·¯ ¸Þ½ÃÁö¸¦ ¾òÀ» ¼ö ÀÖ´Ù.

Returns:
error message
Since:
6.0 v100

envelopeFile

public int envelopeFile(java.lang.String cert,
                        java.lang.String filePathIn,
                        java.lang.String filePathOut)
Enveloped FileÀ» »ý¼ºÇÑ´Ù.

Parameters:
cert - EnvelopeÇϴµ¥ »ç¿ëµÉ ÀÎÁõ¼­..
filePathIn - EnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
filePathOut - »ý¼ºµÉ EnvelopeµÈ °á°ú È­ÀÏ.
Since:
6.0 v100

envelopeFileCMS

public int envelopeFileCMS(java.lang.String cert,
                           java.lang.String filePathIn,
                           java.lang.String filePathOut)
Enveloped FileÀ» »ý¼ºÇÑ´Ù.

Parameters:
cert - EnvelopeÇϴµ¥ »ç¿ëµÉ ÀÎÁõ¼­..
filePathIn - EnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
filePathOut - »ý¼ºµÉ EnvelopeµÈ °á°ú È­ÀÏ.
Since:
6.0 v100

envelopeFile

public int envelopeFile(byte[] cert,
                        byte[] filePathIn,
                        java.io.OutputStream out,
                        boolean is_cms)
FileÀ» EnvelopeÇÏ¿© ½ºÆ®¸²À¸·Î Ãâ·ÂÇÑ´Ù.

º¸Åë 1500¹ÙÀÌÆ® ¹Ì¸¸ÀÇ ´ÜÀ§·Î Ãâ·ÂµÇ¹Ç·Î
½ºÆ®¸² ¹öÆÛ Å©±â´Â 1500 Byte³»¿Ü°¡ ÀûÀýÇÔ.

dead lock ÁÖÀÇ!!!

Parameters:
cert - EnvelopeÇϴµ¥ »ç¿ëµÉ ÀÎÁõ¼­..
filePathIn - EnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
out - EnvelopeµÈ °á°ú°¡ Ãâ·ÂµÉ ½ºÆ®¸².
is_cms - CMSÇü½Ä »ç¿ë ¿©ºÎ
Since:
6.0 v120

deEnvelopeFile

public int deEnvelopeFile(java.lang.String filePathIn,
                          java.lang.String filePathOut)
Enveloped FileÀ» DeEnvelopeÇÑ´Ù.

Parameters:
filePathIn - DeEnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
filePathOut - »ý¼ºµÉ DeEnvelopeµÈ °á°ú È­ÀÏ.
Since:
6.0 v100

keKeyEnvelopeFile

public int keKeyEnvelopeFile(byte[] keKey,
                             java.lang.String filePathIn,
                             java.lang.String filePathOut)
Enveloped FileÀ» »ý¼ºÇÑ´Ù.

Parameters:
keKey - EnvelopeÇϴµ¥ »ç¿ëµÉ Symmetric Key-Encryption Key.
filePathIn - EnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
filePathOut - »ý¼ºµÉ EnvelopeµÈ °á°ú È­ÀÏ.
Since:
6.0 v100

keKeyEnvelopeFile_CMS

public int keKeyEnvelopeFile_CMS(byte[] keKey,
                                 java.lang.String filePathIn,
                                 java.lang.String filePathOut)
Enveloped FileÀ» »ý¼ºÇÑ´Ù.

Parameters:
keKey - EnvelopeÇϴµ¥ »ç¿ëµÉ Symmetric Key-Encryption Key.
filePathIn - EnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
filePathOut - »ý¼ºµÉ EnvelopeµÈ °á°ú È­ÀÏ.
Since:
6.0 v100

keKeyDeEnvelopeFile

public int keKeyDeEnvelopeFile(byte[] keKey,
                               java.lang.String filePathIn,
                               java.lang.String filePathOut)
Enveloped FileÀ» DeEnvelopeÇÑ´Ù.

Parameters:
keKey - DeEnvelopeÇϴµ¥ »ç¿ëµÉ Symmetric Key-Encryption Key.
filePathIn - DeEnvelopeÇϰíÀÚÇÏ´Â È­ÀÏ.
filePathOut - »ý¼ºµÉ DeEnvelopeµÈ °á°ú È­ÀÏ.
Since:
6.0 v100