|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.security.cert.CertPath
ºÒº¯ÀÎ Áõ¸í¼ÀÇ ¼øÂ÷ ¼ø¼ (Áõ¸í¼ ÆÐ½º)ÀÔ´Ï´Ù.
À̰ÍÀº ¸ðµç CertPath
¿¡ °øÅëµÈ ¸Þ¼Òµå¸¦ Á¤ÀÇÇÏ´Â abstract Ŭ·¡½ºÀÔ´Ï´Ù. ¼ºê Ŭ·¡½º¿¡¼´Â ´Ù¾çÇÑ Á¾·ùÀÇ Áõ¸í¼ (X. 509, PGP µî)À» ó¸®ÇÒ ¼ö ÀÖ½À´Ï´Ù.
¸ðµç CertPath
¿¡´Â ŸÀÔ,Certificate
ÀÇ ¸®½ºÆ®, ¼Æ÷Æ®µÇ´Â 1 kr ÀÌ»óÀÇ encode°¡ ÀÖ½À´Ï´Ù. CertPath
Ŭ·¡½º´Â ºÒº¯À̱â (À§ÇØ)¶§¹®¿¡, ±¸Ãà ÈÄ¿¡ ¿ÜºÎ·ÎºÎÅÍ ´«¿¡ º¸ÀÌ´Â ÇüÅ·ΠCertPath
¸¦ º¯°æÇÒ ¼ö ¾ø½À´Ï´Ù. ÀÌ Á¦ÇÑÀº ÀÌ Å¬·¡½ºÀÇ ¸ðµç public Çʵå¿Í ¸Þ¼Òµå, ±×¸®°í ¼ºê Ŭ·¡½º¿¡¼ Ãß°¡ ¶Ç´Â ¿À¹ö¶óÀ̵å(override) µÈ public Çʵå¿Í ¸Þ¼Òµå¿¡ µé¾î¸ÂÀ¾´Ï´Ù.
ŸÀÔÀº String
·Î, Áõ¸í¼ ÆÐ½º·Î Certificate
ÀÇ Å¸ÀÔÀ» ƯÁ¤ÇÕ´Ï´Ù. Áõ¸í¼ ÆÐ½º certPath
ÀÇ °¢ Áõ¸í¼ cert
¿¡¼´Â cert.getType(). equals(certPath.getType())
´Â true
°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
Certificate
ÀÇ ¸®½ºÆ®´Â 0 °³ ÀÌ»óÀÇ Certificate
·ÎºÎÅÍ µÇ´Â ¼ø¼ ÷ºÎÀÇ List
ÀÔ´Ï´Ù. ÀÌ List
¿Í Æ÷ÇԵǴ Certificate
´Â ºÒº¯ÀÏ Çʿ䰡 ÀÖ½À´Ï´Ù.
°¢°¢ÀÇ CertPath
¿ÀºêÁ§Æ®´Â ´Ù¸¥ »ó´ë¿¡°Ô ÀúÀåÇϰųª Àü¼ÛÇϰųª Çϱâ À§Çؼ ¹ÙÀÌÆ® ¹è¿·Î º¯È¯ÇÒ ¼ö ÀÖ°Ô, 1 kr ÀÌ»óÀÇ encode¸¦ ¼Æ÷Æ®Çϰí ÀÖÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù. °¡´ÉÇÑ ÇÑ ±× encode´Â PKCS#7 ¿Í °°ÀÌ ¸íÈ®ÇÏ°Ô ¹®¼È µÇ°í Àִ ǥÁØÀ¸·Î ÇÕ´Ï´Ù. CertPath
·Î ¼Æ÷Æ®µÇ°í ÀÖ´Â encode °¡¿îµ¥ 1 °³¸¦, µðÆúÆ®ÀÇ encode·Î ÇÕ´Ï´Ù. encode¸¦ ¸í½ÃÀûÀ¸·Î ¿ä±¸ÇÏÁö ¾Ê´Â °æ¿ì (¿¹¸¦ µé¾î getEncoded()
¸Þ¼Òµå)¿¡, µðÆúÆ®ÀÇ encode°¡ »ç¿ëµË´Ï´Ù.
¸ðµç CertPath
¿ÀºêÁ§Æ®´Â Serializable
À̱⵵ ÇÕ´Ï´Ù. Á÷·ÄÈÁß¿¡ CertPath
¿ÀºêÁ§Æ®´Â ´ëü CertPathRep
¿ÀºêÁ§Æ®·Î ÇØ¼® 󸮵˴ϴÙ. À̰Ϳ¡ ÀÇÇØ,CertPath
¿ÀºêÁ§Æ®´Â ±âº»ÀÌ µÇ´Â ±¸Çö¿¡ °ü°è¾øÀÌ µî°¡ÀΠǥÇö¿¡ Á÷·ÄÈ µË´Ï´Ù.
CertPath
¿ÀºêÁ§Æ®´Â CertificateFactory
·Î ÀÛ¼ºµË´Ï´Ù¸¸,CertPathBuilder
¿Í °°Àº ´Ù¸¥ Ŭ·¡½º·ÎºÎÅÍ µ¹·ÁÁÖ¾îÁö´Â Àϵµ ÀÖ½À´Ï´Ù.
±ÔÄ¢¿¡¼´Â X509Certificate
·Î ±¸¼ºµÇ¾î ÀÖ´Â X. 509 CertPath
´Â Ÿ°Ù Áõ¸í¼·Î ½ÃÀ۵Ǿî, Æ®·¯½ºÆ® ¿¨Ä¿°¡ ¹ßÇàÇÑ Áõ¸í¼·Î ³¡³ªµµ·Ï(µíÀÌ) ¼ø¼ ºÙÀÌ°í µÇ°í ÀÖ½À´Ï´Ù. Áï, ¾î´À Áõ¸í¼ÀÇ ¹ßÇàÀÚ´Â ´ÙÀ½ÀÇ Áõ¸í¼ÀÇ ÇÇÀÎÁõÀÚ°¡ µË´Ï´Ù. TrustAnchor
¸¦ ³ªÅ¸³»´Â Áõ¸í¼´Â Áõ¸í¼ ÆÐ½º¿¡ Æ÷ÇÔµÇÁö ¾Ê½À´Ï´Ù. ¹Ì°Ë»çÀÇ X. 509 CertPath
´Â ÀÌ ±ÔÄ¢¿¡ µû¸£Áö ¾Ê½À´Ï´Ù. Áõ¸í¼ ÆÐ½º°¡ ¹«È¿°¡ µÇ´Â ¿øÀÎÀÌ µÇ´Â ÀÌ ±ÔÄ¢À¸·ÎºÎÅÍÀÇ ÀÏÅ»À» PKIX CertPathValidator
´Â °ËÃâÇØ,CertPathValidatorException
¸¦ ½½·Î¿ì ÇÕ´Ï´Ù.
º´Çà ¾×¼¼½º
¸ðµç CertPath
¿ÀºêÁ§Æ®´Â thread ¼¼ÀÌÇÁ°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. Áï, ÀÌ Å¬·¡½º¿¡¼ Á¤ÀÇµÈ ¸Þ¼Òµå´Â ¾Ç¿µÇâÀ» ÁÖ´Â ÀÏ ¾øÀÌ, º¹¼ö thread°¡ º´ÇàÇØ ´ÜÀÏ CertPath
¿ÀºêÁ§Æ® (¶Ç´Â 1 kr ÀÌ»ó) »ó¿¡¼ È£ÃâÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù. À̰ÍÀº CertPath.getCertificates
°¡ µ¹·ÁÁÖ´Â List
¿¡ ´ëÇØ¼µµ µé¾î¸ÂÀ¾´Ï´Ù.
CertPath
¿ÀºêÁ§Æ®´Â ºÒº¯À¸·Î, ÇÑÆí thread ¼¼ÀÌÇÁ°¡ ¾Æ´Ï¸é ¾ÈµÇ±â ¶§¹®¿¡, ¾×¼¼½ºÀÇ µ¿±âÀÇ °ÆÁ¤À» ÇÏ´Â ÀÏ ¾øÀÌ, ´Ù¾çÇÑ Äڵ忡 ÀÌ ¿ÀºêÁ§Æ®¸¦ °Ç³×ÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù.
CertificateFactory
,
CertPathBuilder
,
Á÷·ÄÈ µÈ Çü½Ä ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
protected static class |
CertPath.CertPathRep
Á÷·ÄÈÀÇ ´ëü CertPath Ŭ·¡½ºÀÔ´Ï´Ù. |
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
CertPath (String type)
ÁöÁ¤µÈ ŸÀÔÀÇ CertPath ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
|
¸Þ¼ÒµåÀÇ °³¿ä | |
boolean |
equals (Object other)
ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¿Í ÀÌ Áõ¸í¼ ÆÐ½º°¡ µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÕ´Ï´Ù. |
abstract List |
getCertificates ()
ÀÌ Áõ¸í¼ ÆÐ½º³»ÀÇ Áõ¸í¼ÀÇ ¸®½ºÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
abstract byte[] |
getEncoded ()
µðÆúÆ®ÀÇ encode¸¦ »ç¿ëÇØ, ÀÌ Áõ¸í¼ ÆÐ½ºÀÇ encode µÈ Çü½ÄÀ» µ¹·ÁÁÝ´Ï´Ù. |
abstract byte[] |
getEncoded (String encoding)
ÁöÁ¤ÇÑ encode¸¦ »ç¿ëÇØ, ÀÌ Áõ¸í¼ ÆÐ½ºÀÇ encode µÈ Çü½ÄÀ» µ¹·ÁÁÝ´Ï´Ù. |
abstract Iterator |
getEncodings ()
ÀÌ Áõ¸í¼ ÆÐ½º·Î ¼Æ÷Æ®ÇÏ´Â encodeÀÇ ¹Ýº¹À» µ¹·ÁÁÝ´Ï´Ù. |
String |
getType ()
ÀÌ Áõ¸í¼ ÆÐ½º³»ÀÇ Certificate ÀÇ Å¸ÀÔÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
hashCode ()
ÀÌ Áõ¸í¼ ÆÐ½ºÀÇ ÇØ½Ã Äڵ带 µ¹·ÁÁÝ´Ï´Ù. |
String |
toString ()
ÀÌ Áõ¸í¼ ÆÐ½ºÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected Object |
writeReplace ()
Á÷·ÄÈ µÇ´Â CertPath ¸¦ CertPathRep ¿ÀºêÁ§Æ®¿¡ ¿Å°Ü³õ½À´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , finalize , getClass , notify , notifyAll , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
protected CertPath(String type)
CertPath
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
´ëºÎºÐÀÇ À¯Àú´Â CertificateFactory
¸¦ »ç¿ëÇØ CertPath
¸¦ ÀÛ¼ºÇϱâ À§ÇØ(¶§¹®¿¡), ÀÌ constructor Àº º¸È£µÇ°í ÀÖ½À´Ï´Ù.
type
- ÀÌ ÆÐ½º³»ÀÇ Certificate
ÀÇ Å¸ÀÔÀÇ Ç¥Áظí¸Þ¼ÒµåÀÇ »ó¼¼ |
public String getType()
Certificate
ÀÇ Å¸ÀÔÀ» µ¹·ÁÁÝ´Ï´Ù. À̰ÍÀº Áõ¸í¼ ÆÐ½º³»ÀÇ ¸ðµç Certificate
¿¡ ´ëÇÑ cert.getType()
·Î µ¹·ÁÁÖ¾îÁö´Â ij¸¯ÅÍ ¶óÀΰú °°½À´Ï´Ù.
Certificate
ÀÇ Å¸ÀÔ (null ´Â µÇÁö ¾Ê´Â´Ù)public abstract Iterator getEncodings()
Iterator
¸¦ remove
¸Þ¼Òµå·Î º¯°æÇÏ·Á°í Çϸé(ÀÚ),UnsupportedOperationException
°¡ ½½·Î¿ì µË´Ï´Ù.
Iterator
public boolean equals(Object other)
CertPath
ÀÇ Å¸ÀÔÀÌ µ¿ÀÏÇϰí, Áõ¸í¼ÀÇ List
°¡ (Áï List
³»ÀÇ Certificate
°¡ ¾Ï¹¬ÀûÀ¸·Î) µ¿ÀÏÇÑ °æ¿ì, ÀÌ·¯ÇÑ CertPath
´Â µ¿ÀÏÇÏ°Ô µË´Ï´Ù. CertPath
´Â CertPath
°¡ ¾Æ´Ñ ¿ÀºêÁ§Æ®¿Í µ¿ÀÏÇØÁú °ÍÀº ¾ø½À´Ï´Ù.
ÀÌ ¾Ë°í¸®ÁòÀº ÀÌ ¸Þ¼Òµå¿¡ ±¸ÇöµÇ°í ÀÖ½À´Ï´Ù. ¿À¹ö¶óÀ̵å(override) ÇÒ ¶§´Â ¿©±â¼ ¼³¸íÇÑ µ¿ÀÛÀÌ À¯ÁöµÇµµ·Ï(µíÀÌ) ÇÏÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù.
Object
³»ÀÇ equals
other
- ÀÌ Áõ¸í¼ ÆÐ½º¿Í µ¿ÀÏÇÑÁö ¾î¶²Áö°¡ ÆÇÁ¤µÇ´Â ¿ÀºêÁ§Æ®
Object.hashCode()
,
Hashtable
public int hashCode()
hashCode = path.getType(). hashCode();
hashCode = 31*hashCode + path.getCertificates(). hashCode();
À̰Ϳ¡ ÀÇÇØ,Object.hashCode
ÀÇ ÀÏ¹Ý ±Ô¾à¿¡ ÀÇÇØ ¿ä±¸µÇµµ·Ï(µíÀÌ), ÀÓÀÇÀÇ 2 °³ÀÇ Áõ¸í¼ ÆÐ½º path1
¿Í path2
·Î,path1.equals(path2)
À̸é path1.hashCode() ==path2.hashCode()
°¡ µÇ´Â °ÍÀÌ ÇÁ·ÎÅØ¼ÇµË´Ï´Ù.
Object
³»ÀÇ hashCode
Object.equals(java.lang.Object)
,
Hashtable
public String toString()
Certificate
·Î toString
¸Þ¼Òµå¸¦ È£ÃâÇÕ´Ï´Ù.
Object
³»ÀÇ toString
public abstract byte[] getEncoded() throws CertificateEncodingException
CertificateEncodingException
- encode ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ìpublic abstract byte[] getEncoded(String encoding) throws CertificateEncodingException
encoding
- »ç¿ëÇÏ´Â encode¸í
CertificateEncodingException
- encodeÀÇ ¿¡·¯°¡ ¹ß»ýÇßÀ» °æ¿ì, ȤÀº ÁöÁ¤ÇÑ encode°¡ ¼Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ìpublic abstract List getCertificates()
List
´Â ºÒº¯À¸·Î, thread ¼¼ÀÌÇÁ°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.
Certificate
ÀÇ ºÒº¯ÀÎ List
(ÇÏ´ÃÀº °¡´É, null ´Â ºÒ°¡)protected Object writeReplace() throws ObjectStreamException
CertPath
¸¦ CertPathRep
¿ÀºêÁ§Æ®¿¡ ¿Å°Ü³õ½À´Ï´Ù.
CertPathRep
ObjectStreamException
- ÀÌ Áõ¸í¼ ÆÐ½º¸¦ ³ªÅ¸³»´Â CertPathRep
¸¦ »ý¼ºÇÒ ¼ö ¾ø¾ú´ø °æ¿ì
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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.