JavaTM 2 Platform
Standard Ed. 5.0

java.security
Ŭ·¡½º KeyStore.Builder

java.lang.Object 
  »óÀ§¸¦ È®Àå java.security.KeyStore.Builder
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
KeyStore

public abstract static class KeyStore.Builder
extends Object

ÀνºÅϽºÈ­ ÇØ¾ß ÇÒ KeyStore °´Ã¼¸¦ ±â¼úÇÑ Å¬·¡½ºÀÔ´Ï´Ù.

ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº´Â KeyStore °´Ã¼ÀÇ ÀνºÅϽºÈ­¿Í ÃʱâÈ­¿¡ ÇÊ¿äÇÑ Á¤º¸¸¦ ĸ½¶È­ÇÕ´Ï´Ù. getKeyStore() ¸Þ¼­µå¸¦ È£ÃâÇϸé, ÀÌ Ã³¸®°¡ ½ÃÀ۵˴ϴÙ.

ÀÌ°Í¿¡ ÀÇÇØ KeyStore °´Ã¼ ÀÛ¼ºÀ¸·ÎºÎÅÍ ±¸¼ºÀ» ºÐ¸®ÇÒ ¼ö°¡ ÀÖ¾î ÇÊ¿äÇÏ°Ô µÉ ¶§±îÁö Æнº¿öµå prompt¸¦ Áö¿¬È­ ½ÃÅ°´Â °ÍµîÀÌ °¡´ÉÇØÁý´Ï´Ù.

µµÀÔµÈ ¹öÀü :
1.5
°ü·Ã Ç׸ñ:
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
 

»ý¼ºÀÚ »ó¼¼

KeyStore.Builder

protected KeyStore.Builder()
»õ·Î¿î Builder¸¦ ±¸ÃàÇÕ´Ï´Ù.

¸Þ¼­µåÀÇ »ó¼¼

getKeyStore

public abstract KeyStore  getKeyStore()
                              throws KeyStoreException 
ÀÌ °´Ã¼°¡ ±â¼úÇÏ´Â KeyStore¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¿¹¿Ü:
KeyStoreException - ó¸®Áß¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì (KeyStore ÀνºÅϽºÈ­ ¶Ç´Â ·Îµå¿¡ ½ÇÆÐÇß´Ù´Â µî)

getProtectionParameter

public abstract KeyStore.ProtectionParameter  getProtectionParameter(String  alias)
                                                             throws KeyStoreException 
ÁöÁ¤µÈ º°¸í Entry¸¦ ÃëµæÇÒ ¶§¿¡ »ç¿ëÇØ¾ß ÇÒ ProtectionParameter¸¦ ¸®ÅÏÇÕ´Ï´Ù. getKeyStore ¸Þ¼­µå¸¦ È£ÃâÇÑ ´ÙÀ½ÀÌ ¾Æ´Ï¸é ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇÒ ¼ö ¾ø½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
alias - KeyStore ¿£Æ®¸®ÀÇ º°¸í
¹Ýȯ°ª:
ÁöÁ¤µÈ º°¸í Entry¸¦ ÃëµæÇÒ ¶§¿¡ »ç¿ëÇØ¾ß ÇÒ ProtectionParameter
¿¹¿Ü:
NullPointerException - alias°¡ null ÀÎ °æ¿ì
KeyStoreException - ó¸®Áß¿¡ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì
IllegalStateException - ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇϱâ Àü¿¡ getKeyStore ¸Þ¼­µå¸¦ È£ÃâÇÏÁö ¾ÊÀº °æ¿ì

newInstance

public static KeyStore.Builder  newInstance(KeyStore  keyStore,
                                           KeyStore.ProtectionParameter  protectionParameter)
ÁöÁ¤µÈ KeyStore¸¦ ĸ½¶È­ÇÏ´Â »õ·Î¿î Builder¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®ÅÏµÈ °´Ã¼ÀÇ getKeyStore() ¸Þ¼­µå¸¦ È£ÃâÇϸé, keyStore°¡ ¸®Åϵ˴ϴ٠. getProtectionParameter() ¸Þ¼­µå·ÎºÎÅÍ´Â protectionParameter°¡ ¸®Åϵ˴ϴ٠.

ÀÌ ¸Þ¼­µå´Â Builder º£À̽ºÀÇ API ·Î ±âÁ¸ÀÇ KeyStore °´Ã¼¸¦ »ç¿ëÇÒ ÇÊ¿ä°¡ ÀÖ´Â °æ¿ì¿¡ Æí¸®ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
keyStore - ĸ½¶È­ÇÏ´Â KeyStore
protectionParameter - KeyStore ¿£Æ®¸®ÀÇ º¸È£¿¡ »ç¿ëÇÏ´Â ProtectionParameter
¹Ýȯ°ª:
»õ·Î¿î Builder °´Ã¼
¿¹¿Ü:
NullPointerException - keyStore ¶Ç´Â protectionParameter Áß ÇÑÂÊÀÌ null ÀÎ °æ¿ì
IllegalArgumentException - keyStore°¡ ÃʱâÈ­µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì

newInstance

public static KeyStore.Builder  newInstance(String  type,
                                           Provider  provider,
                                           File  file,
                                           KeyStore.ProtectionParameter  protection)
»õ·Î¿î Builder °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¸®ÅÏµÈ ºô´õ »ó¿¡¼­ÀÇ Ã¹È¸ÀÇ 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¸¦ ÀνºÅϽºÈ­ÇÒ ¶§ÀÇ ±â°¡ µÇ´Â ÇÁ·Î¹ÙÀÌ´õ ¶Ç´Â null
file - KeyStore µ¥ÀÌÅÍ°¡ Æ÷ÇÔµÈ File
protection - KeyStore µ¥ÀÌÅ͸¦ º¸È£ÇÏ´Â ProtectionParameter
¹Ýȯ°ª:
»õ·Î¿î Builder °´Ã¼
¿¹¿Ü:
NullPointerException - type, file, ¶Ç´Â protection Áß ÇÑÂÊÀÌ null ÀÎ °æ¿ì
IllegalArgumentException - protection°¡ PasswordProtection, CallbackHandlerProtection ¾î´À ÀνºÅϽºµµ ¾Æ´Ñ °æ¿ì, ȤÀº file°¡ Á¸ÀçÇÏÁö ¾Ê´ÂÁö, º¸Åë ÀÇ ÆÄÀÏÀ» ÂüÁ¶ÇÏ°í ÀÖÁö ¾Ê´Â °æ¿ì

newInstance

public static KeyStore.Builder  newInstance(String  type,
                                           Provider  provider,
                                           KeyStore.ProtectionParameter  protection)
»õ·Î¿î Builder °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¸®ÅÏµÈ ºô´õ »ó¿¡¼­ getKeyStore() ¸Þ¼­µå¸¦ È£ÃâÇÒ ¶§¸¶´Ù, ÇüÅ type »õ·Î¿î KeyStore °´Ã¼°¡ ¸®Åϵ˴ϴ٠. ±× load() ¸Þ¼­µå´Â protectionÀ» ĸ½¶È­ÇÑ LoadStoreParameter¸¦ »ç¿ëÇØ È£ÃâÇÕ´Ï´Ù.

provider°¡ nullÀÌ ¾Æ´Ñ °æ¿ì, ±× ÇÁ·Î¹ÙÀÌ´õ·ÎºÎÅÍ KeyStore°¡ ÀνºÅϽºÈ­ µË´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ÀνºÅç µÈ ¸ðµç ÇÁ·Î¹ÙÀÌ´õ°¡ °Ë»öµË´Ï´Ù.

getProtectionParameter()¸¦ È£ÃâÇϸé, protection°¡ ¸®Åϵ˴ϴ٠.

getKeyStore() ¸Þ¼­µå´Â ÀÌ ¸Þ¼­µå¸¦ È£ÃâÇÏ°í ÀÖ´Â ÄÚµå AccessControlContext ³»¿¡¼­ ½ÇÇàµÇ´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä.

ÆĶó¹ÌÅÍ:
type - ±¸ÃàÇÏ´Â KeyStore ÇüÅÂ
provider - KeyStore¸¦ ÀνºÅϽºÈ­ÇÒ ¶§ÀÇ ±â°¡ µÇ´Â ÇÁ·Î¹ÙÀÌ´õ ¶Ç´Â null
protection - Å°½ºÅä¾î¸¦ º¸È£ÇÏ´Â ProtectionParameter
¹Ýȯ°ª:
»õ·Î¿î Builder °´Ã¼
¿¹¿Ü:
NullPointerException - type, protection Áß ÇÑÂÊÀÌ null ÀÎ °æ¿ì

JavaTM 2 Platform
Standard Ed. 5.0

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