|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.security.KeyStore.Builder
public abstract static class KeyStore.Builder
ÀνºÅϽºÈ ÇØ¾ß ÇÒ KeyStore °´Ã¼¸¦ ±â¼úÇÑ Å¬·¡½ºÀÔ´Ï´Ù.
ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº´Â KeyStore °´Ã¼ÀÇ ÀνºÅϽºÈ¿Í ÃʱâÈ¿¡ ÇÊ¿äÇÑ Á¤º¸¸¦ ĸ½¶ÈÇÕ´Ï´Ù. getKeyStore() ¸Þ¼µå¸¦ È£ÃâÇϸé, ÀÌ Ã³¸®°¡ ½ÃÀ۵˴ϴÙ.
À̰Ϳ¡ ÀÇÇØ KeyStore °´Ã¼ ÀÛ¼ºÀ¸·ÎºÎÅÍ ±¸¼ºÀ» ºÐ¸®ÇÒ ¼ö°¡ ÀÖ¾î ÇÊ¿äÇÏ°Ô µÉ ¶§±îÁö ÆÐ½º¿öµå prompt¸¦ Áö¿¬È ½ÃŰ´Â °ÍµîÀÌ °¡´ÉÇØÁý´Ï´Ù.
KeyStore,
KeyStoreBuilderParameters | »ý¼ºÀÚ °³¿ä | |
|---|---|
protected |
KeyStore.Builder ()
»õ·Î¿î Builder¸¦ ±¸ÃàÇÕ´Ï´Ù. |
| ¸Þ¼µå °³¿ä | |
|---|---|
abstract KeyStore |
getKeyStore ()
ÀÌ °´Ã¼°¡ ±â¼úÇÏ´Â KeyStore¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
abstract KeyStore.ProtectionParameter |
getProtectionParameter (String alias)
ÁöÁ¤µÈ º°¸í Entry¸¦
ÃëµæÇÒ ¶§¿¡ »ç¿ëÇØ¾ß ÇÒ ProtectionParameter¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
static KeyStore.Builder |
newInstance (KeyStore keyStore,
KeyStore.ProtectionParameter protectionParameter)
ÁöÁ¤µÈ KeyStore¸¦ ĸ½¶ÈÇÏ´Â »õ·Î¿î Builder¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
static KeyStore.Builder |
newInstance (String type,
Provider provider,
File file,
KeyStore.ProtectionParameter protection)
»õ·Î¿î Builder °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
static KeyStore.Builder |
newInstance (String type,
Provider provider,
KeyStore.ProtectionParameter protection)
»õ·Î¿î Builder °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
protected KeyStore.Builder()
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public abstract KeyStore getKeyStore()
throws KeyStoreException
KeyStoreException - ó¸®Áß¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì (KeyStore
ÀνºÅϽºÈ ¶Ç´Â ·Îµå¿¡ ½ÇÆÐÇß´Ù´Â µî)
public abstract KeyStore.ProtectionParameter getProtectionParameter(String alias)
throws KeyStoreException
Entry¸¦
ÃëµæÇÒ ¶§¿¡ »ç¿ëÇØ¾ß ÇÒ ProtectionParameter¸¦ ¸®ÅÏÇÕ´Ï´Ù. getKeyStore ¸Þ¼µå¸¦ È£ÃâÇÑ ´ÙÀ½ÀÌ ¾Æ´Ï¸é ÀÌ ¸Þ¼µå¸¦ È£ÃâÇÒ ¼ö ¾ø½À´Ï´Ù.
alias - KeyStore ¿£Æ®¸®ÀÇ º°¸í
Entry¸¦
ÃëµæÇÒ ¶§¿¡ »ç¿ëÇØ¾ß ÇÒ ProtectionParameter
NullPointerException - alias°¡ null ÀÎ °æ¿ì
KeyStoreException - ó¸®Áß¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
IllegalStateException - ÀÌ ¸Þ¼µå¸¦ È£ÃâÇϱâ Àü¿¡ getKeyStore ¸Þ¼µå¸¦ È£ÃâÇÏÁö ¾ÊÀº °æ¿ì
public static KeyStore.Builder newInstance(KeyStore keyStore,
KeyStore.ProtectionParameter protectionParameter)
keyStore°¡ ¸®Åϵ˴ϴÙ
. getProtectionParameter() ¸Þ¼µå·ÎºÎÅÍ´Â protectionParameter°¡ ¸®Åϵ˴ϴÙ
.
ÀÌ ¸Þ¼µå´Â Builder º£À̽ºÀÇ API ·Î ±âÁ¸ÀÇ KeyStore °´Ã¼¸¦ »ç¿ëÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì¿¡ Æí¸®ÇÕ´Ï´Ù.
keyStore - ĸ½¶ÈÇÏ´Â KeyStoreprotectionParameter - KeyStore ¿£Æ®¸®ÀÇ º¸È£¿¡ »ç¿ëÇÏ´Â ProtectionParameter
NullPointerException - keyStore ¶Ç´Â protectionParameter Áß ÇÑÂÊÀÌ null ÀÎ °æ¿ì
IllegalArgumentException - keyStore°¡ ÃʱâȵǾî ÀÖÁö ¾ÊÀº °æ¿ì
public static KeyStore.Builder newInstance(String type,
Provider provider,
File file,
KeyStore.ProtectionParameter protection)
¸®ÅÏµÈ ºô´õ
»ó¿¡¼ÀÇ Ã¹È¸ÀÇ getKeyStore() ¸Þ¼µå È£Ãâ¿¡¼´Â type ÇüÀÇ KeyStore°¡ ÀÛ¼ºµÇ´Â °Í°ú µ¿½Ã¿¡
±× load() ¸Þ¼µå°¡ È£ÃâµË´Ï´Ù. inputStreamÀμö´Â file¿¡ ±Ù°ÅÇØ ±¸ÃàµË´Ï´Ù. protection°¡ PasswordProtectionÀÎ °æ¿ì, ÆÐ½º¿öµå¸¦ ÃëµæÇÏ·Á¸é getPassword ¸Þ¼µå¸¦ È£ÃâÇÕ´Ï´Ù. protection°¡ CallbackHandlerProtectionÀÎ °æ¿ì, ÆÐ½º¿öµå¸¦ ÃëµæÇÏ·Á¸é CallbackHandler¸¦ È£ÃâÇÕ´Ï´Ù.
ÈļÓÀÇ getKeyStore() È£Ãâ¿¡¼´Â ùȸÀÇ È£Ãâ½Ã¿Í °°Àº °´Ã¼°¡ ¸®Åϵ˴ϴÙ
. ùȸÀÇ È£ÃâÀÌ KeyStoreException ·Î ½ÇÆÐÇßÀ» °æ¿ì, ÈļÓÀÇ È£Ãâ¿¡¼µµ KeyStoreException°¡ ¹ß»ý µË´Ï´Ù.
provider°¡ nullÀÌ ¾Æ´Ñ °æ¿ì, ±× ÇÁ·Î¹ÙÀÌ´õ·ÎºÎÅÍ KeyStore°¡ ÀνºÅϽºÈ µË´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ÀνºÅç µÈ ¸ðµç ÇÁ·Î¹ÙÀÌ´õ°¡ °Ë»öµË´Ï´Ù.
getProtectionParameter()¸¦
È£ÃâÇϸé, load ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ »ç¿ëµÈ ÆÐ½º¿öµå¸¦ ĸ½¶ÈÇÑ PasswordProtection °´Ã¼°¡ ¸®Åϵ˴ϴÙ
.
getKeyStore() ¸Þ¼µå´Â ÀÌ ¸Þ¼µå¸¦ È£ÃâÇϰí ÀÖ´Â ÄÚµå AccessControlContext ³»¿¡¼ ½ÇÇàµÇ´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.
type - ±¸ÃàÇÏ´Â KeyStore
ÇüÅÂprovider - KeyStore¸¦ ÀνºÅϽºÈÇÒ ¶§ÀÇ ±â°¡ µÇ´Â ÇÁ·Î¹ÙÀÌ´õ ¶Ç´Â nullfile - KeyStore µ¥ÀÌÅͰ¡ Æ÷ÇÔµÈ Fileprotection - KeyStore µ¥ÀÌÅ͸¦ º¸È£ÇÏ´Â ProtectionParameter
NullPointerException - type, file, ¶Ç´Â protection Áß ÇÑÂÊÀÌ null ÀÎ °æ¿ì
IllegalArgumentException - protection°¡ PasswordProtection, CallbackHandlerProtection
¾î´À ÀνºÅϽºµµ ¾Æ´Ñ °æ¿ì, ȤÀº file°¡ Á¸ÀçÇÏÁö ¾Ê´ÂÁö, º¸Åë
ÀÇ ÆÄÀÏÀ» ÂüÁ¶Çϰí ÀÖÁö ¾Ê´Â °æ¿ì
public static KeyStore.Builder newInstance(String type,
Provider provider,
KeyStore.ProtectionParameter protection)
¸®ÅÏµÈ ºô´õ
»ó¿¡¼ getKeyStore() ¸Þ¼µå¸¦ È£ÃâÇÒ ¶§¸¶´Ù, ÇüÅ type
»õ·Î¿î KeyStore °´Ã¼°¡ ¸®Åϵ˴ϴÙ
. ±× load() ¸Þ¼µå´Â protectionÀ» ĸ½¶ÈÇÑ LoadStoreParameter¸¦ »ç¿ëÇØ È£ÃâÇÕ´Ï´Ù.
provider°¡ nullÀÌ ¾Æ´Ñ °æ¿ì, ±× ÇÁ·Î¹ÙÀÌ´õ·ÎºÎÅÍ KeyStore°¡ ÀνºÅϽºÈ µË´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ÀνºÅç µÈ ¸ðµç ÇÁ·Î¹ÙÀÌ´õ°¡ °Ë»öµË´Ï´Ù.
getProtectionParameter()¸¦
È£ÃâÇϸé, protection°¡ ¸®Åϵ˴ϴÙ
.
getKeyStore() ¸Þ¼µå´Â ÀÌ ¸Þ¼µå¸¦ È£ÃâÇϰí ÀÖ´Â ÄÚµå AccessControlContext ³»¿¡¼ ½ÇÇàµÇ´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.
type - ±¸ÃàÇÏ´Â KeyStore
ÇüÅÂprovider - KeyStore¸¦ ÀνºÅϽºÈÇÒ ¶§ÀÇ ±â°¡ µÇ´Â ÇÁ·Î¹ÙÀÌ´õ ¶Ç´Â nullprotection - Ű½ºÅä¾î¸¦ º¸È£ÇÏ´Â ProtectionParameter
NullPointerException - type, protection Áß ÇÑÂÊÀÌ null ÀÎ °æ¿ì
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.