JCaosLib
V1.4.4.0

com.dreamsecurity.jcaos.wcms
Class WapEnvelopedData

java.lang.Object
  extended bycom.dreamsecurity.jcaos.wcms.WapEnvelopedData

public class WapEnvelopedData
extends java.lang.Object

WapEnvelopedData¸¦ ó¸®Çϱâ À§ÇÑ Å¬·¡½ºÀÌ´Ù.

WapEnvelopedData´Â ¸Þ½ÃÁöÀÇ ±â¹Ð¼ºÀ» À§Çؼ­ »ç¿ëµÇ´Â EnvelopedData¿Í ¸Þ½ÃÁö ±¸Á¶¿Í ºñ½ÁÇϳª, WapEnvelopedData´Â ¸Þ½ÃÁöÀÇ »çÀÌÁî¿¡ ¹Î°¨ÇÑ ¹«¼±È¯°æ¿¡¼­ »ç¿ëµÇ±â À§Çؼ­ XDR·Î ÀÎÄÚµùµÇ´Â°ÍÀÌ ´Ù¸¥Á¡ÀÌ´Ù.

Since:
1.0.0.0

Method Summary
 byte[] decryptContent(X509Certificate cert, PKCS8PrivateKeyInfo priKey)
          µ¥ÀÌÅ͸¦ º¹È£È­ÇÏ¿© Æò¹® µ¥ÀÌÅ͸¦ ȹµæÇÑ´Ù.
 byte[] getCipherEncryptedContent()
          ¾ÏȣȭµÈ ¸Þ½ÃÁö¸¦ ȹµæÇÑ´Ù.
 java.security.Key getContentEncryptionAlg_Key()
          ¸Þ½ÃÁö¸¦ ¾ÏȣȭÇϴµ¥ »ç¿ëµÈ ´ëĪŰ Á¤º¸¸¦ ȹµæÇÑ´Ù.
 java.security.spec.AlgorithmParameterSpec getContentEncryptionAlg_Parmateter()
          ¸Þ½ÃÁö¸¦ ¾ÏȣȭÇϴµ¥ »ç¿ëµÈ ´ëĪŰÀÇ ÆÄ¶ó¸ÞÅÍ Á¤º¸¸¦ ȹµæÇÑ´Ù.
 byte[] getEncoded()
          XDR ÀÎÄÚµùµÈ WapEnvelopedData¸¦ ȹµæÇÑ´Ù.
 byte[] getEncryptedKey()
          ¾ÏȣȭµÈ ´ëĪ۸¦ ȹµæÇÑ´Ù.
static WapEnvelopedData getInstance(byte[] encoded)
          XDR·Î ÀÎÄÚµùµÇ¾îÀÖ´Â WapEnvelopedData¸¦ ÀÔ·ÂÇÏ¿© WapEnvelopedData °´Ã¼¸¦ »ý¼ºÇÑ´Ù.
 java.lang.String getKeyManagementAlgorithm()
          ¸Þ½ÃÁö¸¦ ¾Ïȣȭ´Âµ¥ »ç¿ëµÈ ´ëĪ۸¦ ¾ÏȣȭÇϴµ¥ »ç¿ëµÈ ¾Ë°í¸®ÁòÀ» ȹµæÇÑ´Ù.
 byte[] getRid_issuerSerNo()
          ¸Þ½ÃÁöÀÇ ¼ö½ÅÀÚ ½Äº°ÀÚ Áß ÀÎÁõ¼­ ¹ß±ÞÀÚ À̸§°ú ÀϷùøÈ£¸¦ È®ÀÎÇÑ´Ù.
 byte[] getRid_subjKeyId()
          ¸Þ½ÃÁöÀÇ ¼ö½ÅÀÚ ½Äº°ÀÚ Áß ÀÎÁõ¼­ °ø°³Å° ½Äº°ÀÚ¸¦ È®ÀÎÇÑ´Ù.
 int getVersion()
          WapEnvelopedDataÀÇ ¹öÀüÀ» È®ÀÎÇÑ´Ù.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WapEnvelopedData getInstance(byte[] encoded)
                                    throws ParsingException
XDR·Î ÀÎÄÚµùµÇ¾îÀÖ´Â WapEnvelopedData¸¦ ÀÔ·ÂÇÏ¿© WapEnvelopedData °´Ã¼¸¦ »ý¼ºÇÑ´Ù.

Parameters:
encoded - XDR·Î ÀÎÄÚµù µÇ¾îÀÖ´Â WapEnvelopedData
Returns:
WapEnvelopedData °´Ã¼
Throws:
ParsingException - µ¥ÀÌÅÍ µðÄÚµù ½ÇÆÐ½Ã ¹ß»ý

getEncoded

public byte[] getEncoded()
XDR ÀÎÄÚµùµÈ WapEnvelopedData¸¦ ȹµæÇÑ´Ù.

Returns:
XDR ÀÎÄÚµùµÈ WapEnvelopedData

decryptContent

public byte[] decryptContent(X509Certificate cert,
                             PKCS8PrivateKeyInfo priKey)
                      throws java.io.IOException,
                             NotForUserException,
                             java.security.NoSuchProviderException,
                             java.security.NoSuchAlgorithmException,
                             javax.crypto.NoSuchPaddingException,
                             javax.crypto.IllegalBlockSizeException,
                             javax.crypto.BadPaddingException,
                             java.security.InvalidKeyException,
                             java.security.InvalidAlgorithmParameterException
µ¥ÀÌÅ͸¦ º¹È£È­ÇÏ¿© Æò¹® µ¥ÀÌÅ͸¦ ȹµæÇÑ´Ù.

Parameters:
cert - ¼ö½ÅÀÚÀÇ ¾Ïȣȭ¿ë ÀÎÁõ¼­
priKey - ¼ö½ÅÀÚÀÇ ¾Ïȣȭ¿ë °³ÀÎŰ
Returns:
º¹È£È­µÈ Æò¹® µ¥ÀÌÅÍ
Throws:
java.io.IOException - ÀÎÁõ¼­ µðÄÚµù ½ÇÆÐ½Ã ¹ß»ý
NotForUserException - ÁöÁ¤ÇÑ ÀÎÁõ¼­°¡ ¾Ïȣȭ¿¡ »ç¿ëµÈ ÀÎÁõ¼­°¡ ¾Æ´Ñ°æ¿ì¿¡ ¹ß»ý
java.security.NoSuchAlgorithmException - Áö¿øµÇÁö ¾Ê´Â ¼­¸í ¾Ë°í¸®ÁòÀÌ »ç¿ëµÇ¾úÀ» °æ¿ì¿¡ ¹ß»ý
java.security.NoSuchProviderException - Áö¿øÇÏÁö ¾Ê´Â ¾ÏÈ£ ¸ðµâ Á¦°øÀÚÀÏ °æ¿ì¿¡ ¹ß»ý
javax.crypto.NoSuchPaddingException - Áö¿øÇÏÁö ¾Ê´Â ÆÐµù Á¾·ùÀÏ °æ¿ì¿¡ ¹ß»ý
javax.crypto.IllegalBlockSizeException - ÀÔ·Â µ¥ÀÌÅÍÀÇ ±æÀ̰¡ ºí·° ¾Ë°í¸®Áò¿¡ ÀûÇÕÇÏÁö ¾Ê´Â °æ¿ì¿¡ ¹ß»ý
javax.crypto.BadPaddingException - ÀԷ°ªÀÌ ÁöÁ¤µÈ ÆÐµù ŸÀÔÀ¸·Î ÆÐµù µÇ¾îÀÖÁö ¾ÊÀº °æ¿ì¿¡ ¹ß»ý
java.security.InvalidKeyException - ¾Ë°í¸®Áò¿¡ ´ëÇÑ ÀûÇÕÇÑ Å°(À߸øµÈ ÀÎÄÚµù, À߸øµÈ ±æÀÌ, ÃʱâÈ­ µÇÁö ¾ÊÀ½ µî)°¡ ¾Æ´Ñ °æ¿ì¿¡ ¹ß»ý
java.security.InvalidAlgorithmParameterException - ¾Ë°í¸®Áò ÆÄ¶ó¸ÞÅͰ¡ ÀûÇÕÇÏÁö ¾ÊÀº °æ¿ì¿¡ ¹ß»ý

getVersion

public int getVersion()
WapEnvelopedDataÀÇ ¹öÀüÀ» È®ÀÎÇÑ´Ù.

Returns:
¹öÀü

getContentEncryptionAlg_Key

public java.security.Key getContentEncryptionAlg_Key()
¸Þ½ÃÁö¸¦ ¾ÏȣȭÇϴµ¥ »ç¿ëµÈ ´ëĪŰ Á¤º¸¸¦ ȹµæÇÑ´Ù.

Returns:
´ëĪŰ

getContentEncryptionAlg_Parmateter

public java.security.spec.AlgorithmParameterSpec getContentEncryptionAlg_Parmateter()
¸Þ½ÃÁö¸¦ ¾ÏȣȭÇϴµ¥ »ç¿ëµÈ ´ëĪŰÀÇ ÆÄ¶ó¸ÞÅÍ Á¤º¸¸¦ ȹµæÇÑ´Ù.

Returns:
´ëĪŰ ÆÄ¶ó¸ÞÅÍ

getRid_subjKeyId

public byte[] getRid_subjKeyId()
¸Þ½ÃÁöÀÇ ¼ö½ÅÀÚ ½Äº°ÀÚ Áß ÀÎÁõ¼­ °ø°³Å° ½Äº°ÀÚ¸¦ È®ÀÎÇÑ´Ù.

Returns:
ÀÎÁõ¼­ °ø°³Å° ½Äº°ÀÚ. ¸¸¾à ÇØ´ç °ªÀÌ Á¸ÀçÇÏÁö ¾ÊÀ¸¸é nullÀÌ ¸®ÅϵÊ

getRid_issuerSerNo

public byte[] getRid_issuerSerNo()
¸Þ½ÃÁöÀÇ ¼ö½ÅÀÚ ½Äº°ÀÚ Áß ÀÎÁõ¼­ ¹ß±ÞÀÚ À̸§°ú ÀϷùøÈ£¸¦ È®ÀÎÇÑ´Ù.

Returns:
ÀÎÁõ¼­ ¹ß±ÞÀÚ À̸§°ú ÀϷùøÈ£. ¸¸¾à ÇØ´ç °ªÀÌ Á¸ÀçÇÏÁö ¾ÊÀ¸¸é nullÀÌ ¸®ÅϵÊ

getCipherEncryptedContent

public byte[] getCipherEncryptedContent()
¾ÏȣȭµÈ ¸Þ½ÃÁö¸¦ ȹµæÇÑ´Ù.

Returns:
¾ÏȣȭµÈ ¸Þ½ÃÁö

getKeyManagementAlgorithm

public java.lang.String getKeyManagementAlgorithm()
¸Þ½ÃÁö¸¦ ¾Ïȣȭ´Âµ¥ »ç¿ëµÈ ´ëĪ۸¦ ¾ÏȣȭÇϴµ¥ »ç¿ëµÈ ¾Ë°í¸®ÁòÀ» ȹµæÇÑ´Ù.

Returns:
´ëĪŰ ¾Ïȣȭ ¾Ë°í¸®Áò

getEncryptedKey

public byte[] getEncryptedKey()
¾ÏȣȭµÈ ´ëĪ۸¦ ȹµæÇÑ´Ù.

Returns:
¾ÏȣȭµÈ ´ëĪŰ

JCaosLib
V1.4.4.0


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