JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.security.cert
Ŭ·¡½º CertPathValidatorException

java.lang.Object 
  |
  +--java.lang.Throwable 
        |
        +--java.lang.Exception 
              |
              +--java.security.GeneralSecurityException 
                    |
                    +--java.security.cert.CertPathValidatorException
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Serializable

public class CertPathValidatorException
extends GeneralSecurityException

Áõ¸í¼­ ÆÐ½ºÀÇ Å¸´ç¼ºÀ» °Ë»çÇÒ °æ¿ì¿¡ °ËÃâµÇ´Â ´Ù¾çÇÑ ¹®Á¦ÀÇ 1 °³¸¦ ³ªÅ¸³»´Â ¿¹¿ÜÀÔ´Ï´Ù.

CertPathValidatorException ¿¡¼­´Â ·¦ Çϰí ÀÖ´Â ¿¹¿Ü¸¦ ¼­Æ÷Æ®Çϰí ÀÖ½À´Ï´Ù. getCause ¸Þ¼Òµå´Â ÀÌ ¿¹¿Ü°¡ ½½·Î¿ì µÇ´Â ¿øÀÎÀÌ µÇ´Â ½½·Î¿ì °¡´É ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù (Á¸ÀçÇÏ´Â °æ¿ì).

CertPathValidatorException ¿¡´Â ¿¹¿Ü°¡ ½½·Î¿ì µÇ¾úÀ» ¶§¿¡ °Ë»çÁßÀ̾ú´ø Áõ¸í¼­ ÆÐ½º¿Í ¿¹¿Ü°¡ ½½·Î¿ì µÇ´Â ¿øÀÎÀÌ µÈ Áõ¸í¼­ ÆÐ½ºÀÇ Áõ¸í¼­ÀÇ À妽ºµµ Æ÷ÇԵ˴ϴÙ. ÀÌ Á¤º¸¸¦ ÃëµæÇÏ·Á¸é ,getCertPath ¸Þ¼Òµå¿Í getIndex ¸Þ¼Òµå¸¦ »ç¿ëÇÕ´Ï´Ù.

º´Çà ¾×¼¼½º

Ưº°È÷ °ÅÀýÇÏÁö ¾Ê´Â ÀÌ»ó ÀÌ Å¬·¡½º¿¡¼­ Á¤Àǵǰí ÀÖ´Â ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁ°¡ ¾Æ´Õ´Ï´Ù. ´ÜÀÏÀÇ ¿ÀºêÁ§Æ®¿¡ º´Çà ¾×¼¼½º ÇÒ Çʿ䰡 ÀÖ´Â º¹¼ö thread´Â thread°£¿¡ µ¿±â¸¦ Àâ¾Æ, Çʿ信 µû¶ó¼­ Àá±×Áö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù. ´Ù¸¥ ¿ÀºêÁ§Æ®¸¦ Á¶ÀÛÇÏ´Â º¹¼ö thread¿¡¼­´Â µ¿±â¸¦ ÃëÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.4
°ü·Ã Ç׸ñ:
CertPathValidator , Á÷·ÄÈ­ µÈ Çü½Ä

»ý¼ºÀÚÀÇ °³¿ä
CertPathValidatorException ()
          »ó¼¼ ¸Þ¼¼Áö¸¦ ÁöÁ¤ÇÏÁö ¾Ê°í CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
CertPathValidatorException (String  msg)
          ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö¸¦ °¡Áö´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
CertPathValidatorException (String  msg, Throwable  cause)
          ÁöÁ¤ÇÑ »ó¼¼ ¸Þ¼¼Áö¿Í ¿øÀÎÀ» °¡Áö´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
CertPathValidatorException (String  msg, Throwable  cause, CertPath  certPath, int index)
          ÁöÁ¤ÇÑ »ó¼¼ ¸Þ¼¼Áö ¿øÀÎ, Áõ¸í¼­ ÆÐ½º, ¹× À妽º¸¦ °¡Áö´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
CertPathValidatorException (Throwable  cause)
          ÁöÁ¤ÇÑ ½½·Î¿ì °¡´ÉÇÑ ¿ÀºêÁ§Æ®¸¦ ·¦ ÇÏ´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 Throwable getCause ()
          ÀÌ CertPathValidatorException ÀÇ ¿øÀÎÀ» µ¹·ÁÁÝ´Ï´Ù.
 CertPath getCertPath ()
          ¿¹¿Ü°¡ ½½·Î¿ì µÇ¾úÀ» ¶§¿¡ °Ë»çÁßÀ̾ú´ø Áõ¸í¼­ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getIndex ()
          ½½·Î¿ì µÈ ¿¹¿ÜÀÇ ¿øÀÎÀÌ µÈ Áõ¸í¼­ ÆÐ½ºÀÇ Áõ¸í¼­ÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù.
 String getMessage ()
          CertPathValidatorException ÀÇ »ó¼¼ ¸Þ¼¼Áö¸¦ µ¹·ÁÁÝ´Ï´Ù.
 void printStackTrace ()
          System.err ÀÇ ½ºÅà Ʈ·¹À̽º¸¦ Ãâ·ÂÇÕ´Ï´Ù.
 void printStackTrace (PrintStream  ps)
          PrintStream ÀÇ ½ºÅà Ʈ·¹À̽º¸¦ Ãâ·ÂÇÕ´Ï´Ù.
 void printStackTrace (PrintWriter  pw)
          PrintWriter ÀÇ ½ºÅà Ʈ·¹À̽º¸¦ Ãâ·ÂÇÕ´Ï´Ù.
 String toString ()
          ³»ºÎÀÇ (·¦ µÈ) ¿øÀÎÀÌ ÀÖÀ¸¸é ±× ±â¼úÀ» Æ÷ÇÔÇÑ, ÀÌ ¿¹¿Ü¿¡ ´ëÇØ ±â¼úÇϴ ij¸¯ÅÍ ¶óÀÎÀ» µ¹·ÁÁÝ´Ï´Ù.
 
Ŭ·¡½º java.lang. Throwable ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
fillInStackTrace , getLocalizedMessage , getStackTrace , initCause , setStackTrace
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

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

CertPathValidatorException

public CertPathValidatorException()
»ó¼¼ ¸Þ¼¼Áö¸¦ ÁöÁ¤ÇÏÁö ¾Ê°í CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.


CertPathValidatorException

public CertPathValidatorException(String  msg)
ÁöÁ¤µÈ »ó¼¼ ¸Þ¼¼Áö¸¦ °¡Áö´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. »ó¼¼ ¸Þ¼¼Áö¶õ, ÀÌ ¿¹¿Ü¸¦ ±â¼úÇÏ´Â String ÀÔ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
msg - »ó¼¼ ¸Þ¼¼Áö

CertPathValidatorException

public CertPathValidatorException(Throwable  cause)
ÁöÁ¤ÇÑ ½½·Î¿ì °¡´ÉÇÑ ¿ÀºêÁ§Æ®¸¦ ·¦ ÇÏ´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. À̰Ϳ¡ ÀÇÇØ ¾î¶² ¿¹¿Ü¶óµµ, µð¹ö±×½Ã¿¡ µµ¿òÀÌ µÇ´Â ·¦ µÈ ¿¹¿ÜÀÇ Á¤º¸¸¦ º¸°ü À¯ÁöÇϸ鼭,CertPathValidatorException ·Î º¯È¯ÇÒ ¼ö ÀÖ½À´Ï´Ù. »ó¼¼ ¸Þ¼¼Áö´Â ¡¸(cause==null ? null : cause.toString() )¡¹·Î ¼³Á¤µÇ¾î Åë»ó, ¿øÀÎÀÌ µÈ Ŭ·¡½º¿Í »ó¼¼ ¸Þ¼¼Áö°¡ Æ÷ÇԵ˴ϴÙ.

ÆÄ¶ó¹ÌÅÍ:
cause - ¿øÀÎ. ³ªÁß¿¡ getCause() ¸Þ¼Òµå·Î ²¨³¾ ¼ö ÀÖ°Ô º¸Á¸µÈ´Ù. null Ä¡µµ Çã°¡µÇ¾î ±× °æ¿ì´Â ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ºÒ¸íÇÑ °ÍÀ» ³ªÅ¸³½´Ù

CertPathValidatorException

public CertPathValidatorException(String  msg,
                                  Throwable  cause)
ÁöÁ¤ÇÑ »ó¼¼ ¸Þ¼¼Áö¿Í ¿øÀÎÀ» °¡Áö´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
msg - »ó¼¼ ¸Þ¼¼Áö
cause - ¿øÀÎ. ³ªÁß¿¡ getCause() ¸Þ¼Òµå·Î ²¨³¾ ¼ö ÀÖ°Ô º¸Á¸µÈ´Ù. null Ä¡µµ Çã°¡µÇ¾î ±× °æ¿ì´Â ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ºÒ¸íÇÑ °ÍÀ» ³ªÅ¸³½´Ù

CertPathValidatorException

public CertPathValidatorException(String  msg,
                                  Throwable  cause,
                                  CertPath  certPath,
                                  int index)
ÁöÁ¤ÇÑ »ó¼¼ ¸Þ¼¼Áö ¿øÀÎ, Áõ¸í¼­ ÆÐ½º, ¹× À妽º¸¦ °¡Áö´Â CertPathValidatorException ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
msg - »ó¼¼ ¸Þ¼¼Áö. Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â null
cause - ¿øÀÎ. Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â null
certPath - ¿¡·¯°¡ °ËÃâµÇ¾úÀ» ¶§¿¡ °Ë»çÁßÀ̾ú´ø Áõ¸í¼­ ÆÐ½º
index - ¿¡·¯ÀÇ ¿øÀÎÀÌ µÈ Áõ¸í¼­ ÆÐ½ºÀÇ Áõ¸í¼­ÀÇ À妽º. Ÿ´çÇÏÁö ¾ÊÀº °æ¿ì´Â -1. CertPath ÀÇ Áõ¸í¼­ ¸®½ºÆ®´Â 0 À¸·ÎºÎÅÍ ½ÃÀ۵Ǵ °Í¿¡ ÁÖÀÇ
¿¹¿Ü:
IndexOutofBoundsException - À妽º°¡ ¹üÀ§¿ÜÀÇ °æ¿ì (index < -1 || (certPath ! = null && index >= certPath.getCertificates(). size())
IllegalArgumentException - certPath °¡ null À̸ç, ÇÑÆí index °¡ -1 °¡ ¾Æ´Ñ °æ¿ì
¸Þ¼ÒµåÀÇ »ó¼¼

getMessage

public String  getMessage()
CertPathValidatorException ÀÇ »ó¼¼ ¸Þ¼¼Áö¸¦ µ¹·ÁÁÝ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ getMessage
¹Ýȯ°ª:
»ó¼¼ ¸Þ¼¼Áö. ¸Þ¼¼Áöµµ ¿øÀεµ ÁöÁ¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â null

getCertPath

public CertPath  getCertPath()
¿¹¿Ü°¡ ½½·Î¿ì µÇ¾úÀ» ¶§¿¡ °Ë»çÁßÀ̾ú´ø Áõ¸í¼­ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
¿¹¿Ü°¡ ½½·Î¿ì µÇ¾úÀ» ¶§¿¡ °Ë»çÁßÀ̾ú´ø CertPath. ÁöÁ¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â null

getIndex

public int getIndex()
½½·Î¿ì µÈ ¿¹¿ÜÀÇ ¿øÀÎÀÌ µÈ Áõ¸í¼­ ÆÐ½ºÀÇ Áõ¸í¼­ÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù. CertPath ÀÇ Áõ¸í¼­ ¸®½ºÆ®´Â 0 À¸·ÎºÎÅÍ ½ÃÀ۵Ǵ °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä. À妽º°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â -1 ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù.

¹Ýȯ°ª:
¼³Á¤µÇ¾î ÀÖ´Â À妽º. ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â -1

getCause

public Throwable  getCause()
ÀÌ CertPathValidatorException ÀÇ ¿øÀÎÀ» µ¹·ÁÁÝ´Ï´Ù. ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ºÒ¸íÀÇ °æ¿ì´Â null ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ getCause
¹Ýȯ°ª:
½½·Î¿ì °¡´ÉÇÑ ¿ÀºêÁ§Æ®ÀÇ ¿øÀÎ. ¿øÀÎÀÌ Á¸ÀçÇÏÁö ¾Ê´Â°¡ ºÒ¸íÀÇ °æ¿ì´Â null

toString

public String  toString()
³»ºÎÀÇ (·¦ µÈ) ¿øÀÎÀÌ ÀÖÀ¸¸é ±× ±â¼úÀ» Æ÷ÇÔÇÑ, ÀÌ ¿¹¿Ü¿¡ ´ëÇØ ±â¼úÇϴ ij¸¯ÅÍ ¶óÀÎÀ» µ¹·ÁÁÝ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ toString
¹Ýȯ°ª:
ÀÌ CertPathValidatorException ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇö

printStackTrace

public void printStackTrace()
System.err ÀÇ ½ºÅà Ʈ·¹À̽º¸¦ Ãâ·ÂÇÕ´Ï´Ù. ¿øÀÎÀÇ ¹é Æ®·¹À̽º°¡ ÀÖ´Â °æ¿ì´Â ±× ¹é Æ®·¹À̽ºµµ Æ÷ÇԵ˴ϴÙ.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ printStackTrace

printStackTrace

public void printStackTrace(PrintStream  ps)
PrintStream ÀÇ ½ºÅà Ʈ·¹À̽º¸¦ Ãâ·ÂÇÕ´Ï´Ù. ¿øÀÎÀÇ ¹é Æ®·¹À̽º°¡ ÀÖ´Â °æ¿ì´Â ±× ¹é Æ®·¹À̽ºµµ Æ÷ÇԵ˴ϴÙ.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ printStackTrace
ÆÄ¶ó¹ÌÅÍ:
ps - Ãâ·Â¿¡ »ç¿ëÇÏ´Â PrintStream

printStackTrace

public void printStackTrace(PrintWriter  pw)
PrintWriter ÀÇ ½ºÅà Ʈ·¹À̽º¸¦ Ãâ·ÂÇÕ´Ï´Ù. ¿øÀÎÀÇ ¹é Æ®·¹À̽º°¡ ÀÖ´Â °æ¿ì´Â ±× ¹é Æ®·¹À̽ºµµ Æ÷ÇԵ˴ϴÙ.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Throwable ³»ÀÇ printStackTrace
ÆÄ¶ó¹ÌÅÍ:
pw - Ãâ·Â¿¡ »ç¿ëÇÏ´Â PrintWriter

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.