JavaTM 2 Platform
Standard Ed. 5.0

ÆÐÅ°Áö javax.crypto

¾Ïȣȭ Á¶ÀÛÀÇ Å¬·¡½º¿Í ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù.

ÂüÁ¶Ã³:
          ¼³¸í

ÀÎÅÍÆäÀ̽º °³¿ä
SecretKey ºñ¹Ð (´ëĪ) Å°.
 

Ŭ·¡½º °³¿ä
Cipher ÀÌ Å¬·¡½º´Â ¾Ïȣȭ ¹× º¹È£È­ÀÇ ±â´ÉÀ» Á¦°øÇØ, JCE (Java Cryptographic Extension) üÁ¦ÀÇ Äھ Çü¼ºÇÕ´Ï´Ù.
CipherInputStream CipherInputStream´Â InputStream¿Í Cipher ·Î ±¸¼ºµÇ¾î ÀÖÀ¸¹Ç·Î read() ¸Þ¼­µå´Â ±âº»ÀÌ µÇ´Â InputStream ·ÎºÎÅÍ ÀÐÈù µ¥ÀÌÅ͸¦ ¸®ÅÏÇÕ´Ï´Ù¸¸, Cipher¿¡ ÀÇÇØ Ãß°¡ÀÇ Ã³¸®¸¦ ÇÏ°í ÀÖ½À´Ï´Ù.
CipherOutputStream CipherOutputStream´Â OutputStream¿Í Cipher ·Î ±¸¼ºµÇ¾î ÀÖÀ¸¹Ç·Î write() ¸Þ¼­µå´Â ¿ì¼± µ¥ÀÌÅ͸¦ ó¸®ÇÏ°í ³ª¼­ ±âº»ÀÌ µÇ´Â OutputStream¿¡ Ãâ·ÂÇÕ´Ï´Ù.
CipherSpi ÀÌ Å¬·¡½º´Â Cipher Ŭ·¡½ºÀÇ Service Provider Interface (SPI)¸¦ Á¤ÀÇÇÕ´Ï´Ù.
EncryptedPrivateKeyInfo ÀÌ Å¬·¡½º´Â PKCS #8 ·Î Á¤Àǵǰí ÀÖ´Â EncryptedPrivateKeyInfo ÇüÀ» ±¸ÇöÇÕ´Ï´Ù.
ExemptionMechanism ÀÌ Å¬·¡½º´Â Á¦¿Ü µµ±¸ ÀÇ ±â´É°ú ¡¸Å°ÀÇ È¸º¹¡¹, ¡¸Å°ÀÇ ¾àÈ­¡¹ ¹× ¡¸Å° ¿¡½ºÅ©·Î-¡¹ÀÇ ¿¹¸¦ Á¦°øÇÕ´Ï´Ù.
ExemptionMechanismSpi ÀÌ Å¬·¡½º´Â ExemptionMechanism Ŭ·¡½ºÀÇ Service Provider Interface (SPI)¸¦ Á¤ÀÇÇÕ´Ï´Ù.
KeyAgreement ÀÌ Å¬·¡½º´Â Å°ÀÇ ÇÕÀÇ ÇÁ·ÎÅäÄÝ, Áï Å°ÀÇ ±³È¯ ÇÁ·ÎÅäÄÝÀÇ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.
KeyAgreementSpi ÀÌ Å¬·¡½º´Â KeyAgreement Ŭ·¡½ºÀÇ Service Provider Interface (SPI)¸¦ Á¤ÀÇÇÕ´Ï´Ù.
KeyGenerator ÀÌ Å¬·¡½º´Â (´ëĪ) Å° Á¦³×·¹ÀÌÅÍÀÇ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.
KeyGeneratorSpi ÀÌ Å¬·¡½º´Â KeyGenerator Ŭ·¡½ºÀÇ Service Provider Interface (SPI)¸¦ Á¤ÀÇÇÕ´Ï´Ù.
Mac ÀÌ Å¬·¡½º´Â ¡¸¸Þ¼¼Áö ÀÎÁõ Äڵ塹(MAC) ¾Ë°í¸®ÁòÀÇ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù.
MacSpi ÀÌ Å¬·¡½º´Â Mac Ŭ·¡½ºÀÇ Service Provider Interface (SPI)¸¦ Á¤ÀÇÇÕ´Ï´Ù.
NullCipher NullCipher Ŭ·¡½º´Â ¡¸µ¿Àϼº ¾ÏÈ£¡¹¸¦ Á¦°øÇϴ Ŭ·¡½ºÀÔ´Ï´Ù.
SealedObject ÀÌ Å¬·¡½º¿¡ÀÇÇØ ÇÁ·Î±×·¡¸Ó´Â °´Ã¼¸¦ ÀÛ¼ºÇØ, ¾Ïȣȭ ¾Ë°í¸®ÁòÀ» »ç¿ëÇØ ±× ±â¹ÐÀ» º¸È£ÇÒ ¼ö ÀÖ½À´Ï´Ù .
SecretKeyFactory ÀÌ Å¬·¡½º´Â ºñ¹ÐÅ°ÀÇ ÆÑÅ丮¸¦ ³ªÅ¸³À´Ï´Ù.
SecretKeyFactorySpi ÀÌ Å¬·¡½º´Â SecretKeyFactory Ŭ·¡½ºÀÇ Service Provider Interface (SPI)¸¦ Á¤ÀÇÇÕ´Ï´Ù.
 

¿¹¿Ü °³¿ä
BadPaddingException ÀÌ ¿¹¿Ü´Â ƯÁ¤ÀÇ Æеù µµ±¸°¡ ÀÔ·Â µ¥ÀÌÅÍ¿¡ ´ëÇؼ­ ¿¹±â µÇ°í Àִµ¥ µ¥ÀÌÅÍ°¡ ÀûÀýÈ÷ Æеù µÇÁö ¾Ê´Â °æ¿ì¿¡ ¿¹¿Ü¸¦ ¹ß»ý½Ãŵ´Ï´Ù.
ExemptionMechanismException ÀÏ¹Ý ExemptionMechanism ¿¹¿ÜÀÔ´Ï´Ù.
IllegalBlockSizeException ÀÌ ¿¹¿Ü´Â ºí·Ï ¾ÏÈ£¿¡ Á¦°øµÈ µ¥ÀÌÅÍÀÇ ±æÀÌ°¡ ¿Ã¹Ù¸£Áö ¾ÊÀº °æ¿ì, Áï ¾ÏÈ£ÀÇ ºí·Ï »çÀÌÁî¿Í ÀÏÄ¡ÇÏÁö ¾Ê´Â °æ¿ì¿¡ ¿¹¿Ü¸¦ ¹ß»ý½Ãŵ´Ï´Ù.
NoSuchPaddingException ÀÌ ¿¹¿Ü´Â ¾î´À Æеù µµ±¸°¡ ¿ä±¸µÇ¾úÀ½¿¡µµ ºÒ±¸ÇÏ°í, ÇöÀçÀÇ È¯°æ¿¡¼­´Â »ç¿ë °¡´ÉÇÏÁö ¾ÊÀº °æ¿ì¿¡ ¿¹¿Ü¸¦ ¹ß»ý½Ãŵ´Ï´Ù.
ShortBufferException ÀÌ ¿¹¿Ü´Â »ç¿ëÀÚ°¡ Á¦°øÇÑ Ãâ·Â ¹öÆÛ°¡ ³Ê¹« ÀÛ¾Æ Á¶ÀÛ °á°ú¸¦ º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì¿¡ ¿¹¿Ü¸¦ ¹ß»ý½Ãŵ´Ï´Ù.
 

ÆÐÅ°Áö javax.crypto ¼³¸í

¾Ïȣȭ Á¶ÀÛÀÇ Å¬·¡½º¿Í ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù. ÀÌ ÆÐÅ°Áö·Î Á¤ÀǵǴ ¾Ïȣȭ Á¶ÀÛ¿¡´Â ¾Ïȣȭ, Å° »ý¼º°ú Å° ÇÕÀÇ ¹× MAC (¸Þ¼¼Áö ÀÎÁõ ÄÚµå) »ý¼ºÀÌ Æ÷ÇԵ˴ϴÙ.

¾ÏȣȭÀÇ Áö¿ø¿¡ ´Â ´ëĪ, ºñ´ëĪ, ºí·Ï ¹× ½ºÆ®¸² ¾ÏÈ£°¡ Æ÷ÇԵ˴ϴÙ. ¶Ç, ÀÌ ÆÐÅ°Áö´Â ½ÃÅ¥·¯Æ¼ º¸È£µÈ ½ºÆ®¸²°ú ¾Á µÈ °´Ã¼µµ Áö¿ø ÇÕ´Ï´Ù.

ÀÌ ÆÐÅ°Áö·Î Á¦°øµÇ´Â Ŭ·¡½ºÀÇ »ó´ç¼ö´Â ÇÁ·Î¹ÙÀÌ´õ º£À̽ºÀÔ´Ï´Ù. Ŭ·¡½º ÀÚü°¡ ¾îÇø®ÄÉÀ̼ÇÀ¸·ÎºÎÅÍ ±â¼úÇÒ ¼ö ÀÖ´Â ÇÁ·Î±×·¡¹Ö ÀÎÅÍÆäÀ̽º¸¦ Á¤ÀÇÇÏ°í ÀÖ½À´Ï´Ù. ±¸Çö ÀÚü´Â ÇÊ¿ä¿¡ µû¶ó¼­, µ¶¸³ÇÑ ½áµåÆÄƼÀÇ º¥´õ°¡ ÀÛ¼ºÇØ, ½É¸®½º¿¡ Â¥³ÖÀ» ¼ö°¡ ÀÖ½À´Ï´Ù. µû¶ó¼­, ¾îÇø®ÄÉÀÌ¼Ç °³¹ßÀÚ´Â ÇÁ·Î¹ÙÀÌ´õ º£À̽ºÀÇ ±¸ÇöÀ» ¸î°³¿¡¼­µµ ÀÌ¿ëÇÒ ¼ö°¡ ÀÖ¾î ÄÚµåÀÇ Ãß°¡³ª °³¼­¸¦ ÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù.

ÆÐÅ°ÁöÀÇ »ç¾ç

°ü·Ã ¹®¼­

»ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â ´ÙÀ½ÀÇ ¹®¼­¸¦ ÂüÁ¶ÇϽʽÿÀ.

µµÀÔµÈ ¹öÀü :
JCE1. 2

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.