JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.security.cert
Ŭ·¡½º CertPathBuilder

java.lang.Object 
  |
  +--java.security.cert.CertPathBuilder

public class CertPathBuilder
extends Object

Áõ¸í¼­ ÆÐ½º (Áõ¸í¼­ ÃÖÀÎÀ̶ó°íµµ ºÒ¸°´Ù)¸¦ ±¸ÃàÇϱâ À§ÇÑ Å¬·¡½ºÀÔ´Ï´Ù.

ÀÌ Å¬·¡½º¿¡¼­´Â ¡¸Java ¾Ïȣȭ ¾ÆÅ°ÅØÃÄ¡¹·Î ¼³¸íµÇ°í ÀÖ´Â °Í °°Àº ÇÁ·Î¹ÙÀÌ´õ º£À̽ºÀÇ ¾ÆÅ°ÅØÃĸ¦ »ç¿ëÇÕ´Ï´Ù. CertPathBuilder ¸¦ ÀÛ¼ºÇÏ·Á¸é , static getInstance ¸Þ¼Òµå °¡¿îµ¥ 1 °³¸¦ È£ÃâÇØ, ÀÛ¼ºÇÏ´Â CertPathBuilder ÀÇ ¾Ë°í¸®Áò¸í°ú ÇÁ·Î¹ÙÀÌ´õ¸í (»ý·« °¡´É)À» °Ç³×ÁÝ´Ï´Ù.

CertPathBuilder ¿ÀºêÁ§Æ®°¡ ÀÛ¼ºµÇ¸é(ÀÚ),build ¸Þ¼Òµå¸¦ È£ÃâÇØ ¾Ë°í¸®Áò¿¡ ƯÁ¤ÀÇ ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ °Ç³×ÁÖ´Â °ÍÀ¸·Î, Áõ¸í¼­ ÆÐ½º°¡ ±¸ÃàµË´Ï´Ù. Áõ¸í¼­ ÆÐ½ºÀÇ ±¸Ãà¿¡ ¼º°øÇϸé(ÀÚ),CertPathBuilderResult ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â ¿ÀºêÁ§Æ®¿¡ ±× °á°ú (±¸ÃàÇÑ CertPath ¸¦ Æ÷ÇÔÇÑ´Ù)°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.

º´Çà ¾×¼¼½º

ÀÌ Å¬·¡½ºÀÇ static ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁÀÎ °ÍÀÌ ÇÁ·ÎÅØ¼ÇµÇ°í ÀÖ½À´Ï´Ù. ÀÌ Å¬·¡½º¿¡¼­ Á¤Àǵǰí ÀÖ´Â static ¸Þ¼Òµå´Â ¾Ç¿µÇâÀ» ÁÖ´Â ÀÏ ¾øÀÌ, º¹¼ö thread°¡ º´ÇàÇØ È£ÃâÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.

±×·¯³ª À̰ÍÀº ÀÌ Å¬·¡½º¿¡¼­ Á¤Àǵǰí ÀÖ´Â ºñ static ¸Þ¼Òµå¿¡´Â µé¾î¸ÂÁö ¾Ê½À´Ï´Ù. ƯÁ¤ÀÇ ÇÁ·Î¹ÙÀÌ´õ·Î ƯÈ÷ ¼³¸íÀÌ ¾ø´Â ÇÑ, ´ÜÀÏ CertPathBuilder ÀνºÅϽº¿¡ º´ÇàÇØ ¾×¼¼½º ÇÒ Çʿ䰡 ÀÖ´Â º¹¼ö thread´Â thread°£¿¡ µ¿±â¸¦ Àâ¾Æ, Çʿ信 µû¶ó¼­ Àá±×Áö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù. ´Ù¸¥ CertPathBuilder ÀνºÅϽº¸¦ Á¶ÀÛÇÏ´Â º¹¼ö thread°£À¸·Î´Â µ¿±â¸¦ ÀâÀ» ÇÊ¿ä´Â ¾ø½À´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.4
°ü·Ã Ç׸ñ:
CertPath

»ý¼ºÀÚÀÇ °³¿ä
protected CertPathBuilder (CertPathBuilderSpi  builderSpi, Provider  provider, String  algorithm)
          ÁöÁ¤µÈ ¾Ë°í¸®ÁòÀÇ CertPathBuilder ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇØ, ÁöÁ¤µÈ ÇÁ·Î¹ÙÀÌ´õÀÇ ±¸Çö (SPI ¿ÀºêÁ§Æ®)À» °Å±â¿¡ ĸ½¶È­ÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 CertPathBuilderResult build (CertPathParameters  params)
          ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀÇ ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ »ç¿ëÇØ, Áõ¸í¼­ ÆÐ½º¸¦ ±¸ÃàÇÏ·Á°í ÇÕ´Ï´Ù.
 String getAlgorithm ()
          ÀÌ CertPathBuilder ÀÇ ¾Ë°í¸®Áò¸íÀ» µ¹·ÁÁÝ´Ï´Ù.
static String getDefaultType ()
          Java ½ÃÅ¥·¯Æ¼ ÇÁ·ÎÆÛƼ ÆÄÀÏ·Î ÁöÁ¤µÇ°í ÀÖ´Â µðÆúÆ®ÀÇ CertPathBuilder ŸÀÔÀ» µ¹·ÁÁÝ´Ï´Ù.
static CertPathBuilder getInstance (String  algorithm)
          ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static CertPathBuilder getInstance (String  algorithm, Provider  provider)
          ÁöÁ¤ÇÑ ÇÁ·Î¹ÙÀÌ´õ°¡ Á¦°øÇÏ´Â ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
static CertPathBuilder getInstance (String  algorithm, String  provider)
          ÁöÁ¤ÇÑ ÇÁ·Î¹ÙÀÌ´õ°¡ Á¦°øÇÏ´Â ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
 Provider getProvider ()
          ÀÌ CertPathBuilder ÀÇ ÇÁ·Î¹ÙÀÌ´õ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

»ý¼ºÀÚÀÇ »ó¼¼

CertPathBuilder

protected CertPathBuilder(CertPathBuilderSpi  builderSpi,
                          Provider  provider,
                          String  algorithm)
ÁöÁ¤µÈ ¾Ë°í¸®ÁòÀÇ CertPathBuilder ¿ÀºêÁ§Æ®¸¦ ÀÛ¼ºÇØ, ÁöÁ¤µÈ ÇÁ·Î¹ÙÀÌ´õÀÇ ±¸Çö (SPI ¿ÀºêÁ§Æ®)À» °Å±â¿¡ ĸ½¶È­ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
builderSpi - ÇÁ·Î¹ÙÀÌ´õÀÇ ±¸Çö
provider - ÇÁ·Î¹ÙÀÌ´õ
algorithm - ¾Ë°í¸®Áò¸í
¸Þ¼ÒµåÀÇ »ó¼¼

getInstance

public static CertPathBuilder  getInstance(String  algorithm)
                                   throws NoSuchAlgorithmException 
ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÁöÁ¤ÇÑ CertPathBuilder ¾Ë°í¸®ÁòÀÇ ±¸ÇöÀ» µðÆúÆ®ÀÇ ÇÁ·Î¹ÙÀÌ´õ ÆÐŰÁö°¡ Á¦°øÇϰí ÀÖ´Â °æ¿ì´Â ±× ±¸ÇöÀ» Æ÷ÇÔÇÑ CertPathBuilder ÀÇ ÀνºÅϽº°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. µðÆúÆ® ÆÐŰÁö·Î ¸ñÀûÀÇ ¾Ë°í¸®ÁòÀÌ Á¦°øµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì¿¡´Â ´Ù¸¥ ÆÐŰÁö°¡ °Ë»öµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
algorithm - ¿ä±¸ÇÑ CertPathBuilder ¾Ë°í¸®ÁòÀÇ À̸§
¹Ýȯ°ª:
ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®
¿¹¿Ü:
NoSuchAlgorithmException - ¿ä±¸µÇ´Â ¾Ë°í¸®ÁòÀÌ, µðÆúÆ®ÀÇ ÇÁ·Î¹ÙÀÌ´õ ÆÐŰÁö¿¡µµ, °Ë»öÇÑ °Í ¿ÜÀÇ ÇÁ·Î¹ÙÀÌ´õ ÆÐŰÁö¿¡µµ ¾ø´Â °æ¿ì

getInstance

public static CertPathBuilder  getInstance(String  algorithm,
                                          String  provider)
                                   throws NoSuchAlgorithmException ,
                                          NoSuchProviderException 
ÁöÁ¤ÇÑ ÇÁ·Î¹ÙÀÌ´õ°¡ Á¦°øÇÏ´Â ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
algorithm - ¿ä±¸ÇÑ CertPathBuilder ¾Ë°í¸®ÁòÀÇ À̸§
provider - ÇÁ·Î¹ÙÀÌ´õ¸í
¹Ýȯ°ª:
ÁöÁ¤ÇÑ ÇÁ·Î¹ÙÀÌ´õ°¡ Á¦°øÇÏ´Â ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®
¿¹¿Ü:
NoSuchAlgorithmException - ÁöÁ¤µÈ ÇÁ·Î¹ÙÀÌ´õ¿¡ ¿ä±¸ÇÑ ¾Ë°í¸®ÁòÀÌ ¾ø´Â °æ¿ì
NoSuchProviderException - ÇÁ·Î¹ÙÀÌ´õ°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì
IllegalArgumentException - provider °¡ null ÀÇ °æ¿ì

getInstance

public static CertPathBuilder  getInstance(String  algorithm,
                                          Provider  provider)
                                   throws NoSuchAlgorithmException 
ÁöÁ¤ÇÑ ÇÁ·Î¹ÙÀÌ´õ°¡ Á¦°øÇÏ´Â ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. ÁÖ: provider ´Â µî·ÏµÇ¾î ÀÖÀ» ÇÊ¿ä´Â ¾ø½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
algorithm - ¿ä±¸ÇÑ CertPathBuilder ¾Ë°í¸®ÁòÀÇ À̸§
provider - ÇÁ·Î¹ÙÀÌ´õ
¹Ýȯ°ª:
ÁöÁ¤ÇÑ ÇÁ·Î¹ÙÀÌ´õ°¡ Á¦°øÇÏ´Â ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» ±¸ÇöÇÏ´Â CertPathBuilder ¿ÀºêÁ§Æ®
¿¹¿Ü:
NoSuchAlgorithmException - ÁöÁ¤µÈ ÇÁ·Î¹ÙÀÌ´õ¿¡ ¿ä±¸ÇÑ ¾Ë°í¸®ÁòÀÌ ¾ø´Â °æ¿ì
IllegalArgumentException - provider °¡ null ÀÇ °æ¿ì

getProvider

public final Provider  getProvider()
ÀÌ CertPathBuilder ÀÇ ÇÁ·Î¹ÙÀÌ´õ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ CertPathBuilder ÀÇ ÇÁ·Î¹ÙÀÌ´õ

getAlgorithm

public final String  getAlgorithm()
ÀÌ CertPathBuilder ÀÇ ¾Ë°í¸®Áò¸íÀ» µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ CertPathBuilder ÀÇ ¾Ë°í¸®Áò¸í

build

public final CertPathBuilderResult  build(CertPathParameters  params)
                                  throws CertPathBuilderException ,
                                         InvalidAlgorithmParameterException 
ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀÇ ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ »ç¿ëÇØ, Áõ¸í¼­ ÆÐ½º¸¦ ±¸ÃàÇÏ·Á°í ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
params - ¾Ë°í¸®ÁòÀÇ ÆÄ¶ó¹ÌÅÍ
¹Ýȯ°ª:
±¸Ãà ¾Ë°í¸®ÁòÀÇ °á°ú
¿¹¿Ü:
CertPathBuilderException - ÁöÁ¤ÇÑ ÆÄ¶ó¹ÌÅ͸¦ ä¿ì´Â Áõ¸í¼­ ÆÐ½º¸¦ ±¸ÃàÇÒ ¼ö ¾ø¾ú´ø °æ¿ì
InvalidAlgorithmParameterException - ÁöÁ¤µÈ ÆÄ¶ó¹ÌÅͰ¡ ÀÌ CertPathBuilder ¿¡ ´ëÇØ¼­ ºÎÀûÀýÇÑ °æ¿ì

getDefaultType

public static final String  getDefaultType()
Java ½ÃÅ¥·¯Æ¼ ÇÁ·ÎÆÛƼ ÆÄÀÏ·Î ÁöÁ¤µÇ°í ÀÖ´Â µðÆúÆ®ÀÇ CertPathBuilder ŸÀÔÀ» µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®ÀÇ CertPathBuilder ŸÀÔÀ» ³ªÅ¸³»´Â ÇÁ·ÎÆÛƼ°¡ ¾ø´Â °æ¿ì´Â ij¸¯ÅÍ ¶óÀÎ ¡¸PKIX¡¹¸¦ µ¹·ÁÁÝ´Ï´Ù. Java ½ÃÅ¥·¯Æ¼ ÇÁ·ÎÆÛƼ ÆÄÀÏÀº <JAVA_HOME>/lib/security/java.security ¶ó°í ÇÏ´Â ÆÄÀÏ¿¡ ÀÖ½À´Ï´Ù. <JAVA_HOME> ´Â SDK °¡ ÀνºÅç µÇ°í ÀÖ´Â µð·ºÅ丮ÀÔ´Ï´Ù.

µðÆúÆ®ÀÇ CertPathBuilder ŸÀÔÀ» »ç¿ëÇÏ´Â °ÍÀº ¾îÇø®ÄÉÀ̼ÇÀ¸·Î getInstance ¸Þ¼Òµå¸¦ È£ÃâÇÒ ¶§ Çϵå ÄÚµå µÈ Å¸ÀÔÀ» »ç¿ëÇÏÁö ¾Ê´Â °æ¿ì, ¹× À¯Àú°¡ µ¶ÀÚÀûÀΠŸÀÔÀ» ÁöÁ¤ÇÏÁö ¾ÊÀ» ¶§¿¡ µðÆúÆ®ÀÇ Å¸ÀÔÀ» Á¦°øÇÏ´Â °æ¿ìÀÔ´Ï´Ù.

µðÆúÆ®ÀÇ CertPathBuilder ŸÀÔÀ» º¯°æÇÏ·Á¸é , Java ½ÃÅ¥·¯Æ¼ ÇÁ·ÎÆÛƼ ÆÄÀÏÀÇ certpathbuilder.type ½ÃÅ¥·¯Æ¼ ÇÁ·ÎÆÛƼÀÇ °ªÀ» ¸ñÀûÀÇ Å¸ÀÔÀ¸·Î ¼³Á¤ÇÕ´Ï´Ù.

¹Ýȯ°ª:
Java ½ÃÅ¥·¯Æ¼ ÇÁ·ÎÆÛƼ ÆÄÀÏ·Î ÁöÁ¤µÈ µðÆúÆ®ÀÇ CertPathBuilder ŸÀÔ. ÇÁ·ÎÆÛƼ°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â ij¸¯ÅÍ ¶óÀÎ ¡¸PKIX¡¹

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.