|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.security.cert.CertStoreSpi
CertStore
Ŭ·¡½ºÀÇ Service Provider Interface (SPI)ÀÔ´Ï´Ù. CertStore
ÀÇ ¸ðµç ±¸Çö¿¡¼´Â ÀÌ CertStorerSpi
Ŭ·¡½º¸¦ È®ÀåÇØ, ŸÀÔ CertStoreParameters
ÀÇ Àμö 1 krÀ» °¡Áö´Â constructor¸¦ Á¦°øÇØ, ¸ðµç ¸Þ¼Òµå¸¦ ±¸ÇöÇϴ Ŭ·¡½º (SPI Ŭ·¡½º)°¡ Æ÷ÇÔµÇÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù. ÀϹÝÀûÀ¸·Î,CertStore
Ŭ·¡½º¸¦ ÅëÇßÀ» ¶§¸¸, ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº¿¡ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. »ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â ¡¸Java ¾ÏÈ£È ¾ÆÅ°ÅØÃÄ¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
º´Çà ¾×¼¼½º
CertStoreSpi
¿ÀºêÁ§Æ®ÀÇ public ¸Þ¼Òµå´Â thread ¼¼ÀÌÇÁ°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù. Áï, ±×·¯ÇÑ public ¸Þ¼Òµå´Â ¾Ç¿µÇâÀ» ÁÖ´Â ÀÏ ¾øÀÌ, ´ÜÀÏ CertStoreSpi
¿ÀºêÁ§Æ® (¶Ç´Â 1 kr ÀÌ»ó) »ó¿¡¼ º¹¼ö thread°¡ º´ÇàÇØ È£ÃâÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù. À̰Ϳ¡ ÀÇÇØ, ¿¹¸¦ µé¾î Â÷·ÊÂ÷·Ê·Î Áõ¸í¼¸¦ °Ë»öÇϸé¼, µ¿½Ã¿¡ CertPathBuilder
¸¦ »ç¿ëÇØ CRL ¸¦ °Ë»öÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.
°£´ÜÇÑ CertStoreSpi
ÀÇ ±¸Çö¿¡¼´Â synchronized
Ű¿öµå¸¦ engineGetCertificates
¸Þ¼Òµå¿Í engineGetCRLs
¸Þ¼Òµå¿¡ Ãß°¡ÇÏ´Â °ÍÀ¸·Î, thread ¼¼ÀÌÇÁÀÎ °ÍÀÌ ÇÁ·ÎÅØ¼ÇµË´Ï´Ù. °íµµÀÇ ±¸Çö¿¡¼´Â ÁøÁ¤ÇÑ º´Çà ¾×¼¼½º°¡ °¡´ÉÇÏ°Ô µË´Ï´Ù.
»ý¼ºÀÚÀÇ °³¿ä | |
CertStoreSpi (CertStoreParameters params)
À¯ÀÏÇÑ constructor ÀÔ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
abstract Collection |
engineGetCertificates (CertSelector selector)
ÁöÁ¤ÇÑ ½Ç·ºÅÍ¿¡ ÀÏÄ¡ÇÏ´Â Certificate ÀÇ Collection ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
abstract Collection |
engineGetCRLs (CRLSelector selector)
ÁöÁ¤ÇÑ ½Ç·ºÅÍ¿¡ ÀÏÄ¡ÇÏ´Â CRL ÀÇ Collection ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public CertStoreSpi(CertStoreParameters params) throws InvalidAlgorithmParameterException
params
- ÃʱâÈ ÆÄ¶ó¹ÌÅÍ. null
µµ °¡´É
InvalidAlgorithmParameterException
- ÃʱâÈ ÆÄ¶ó¹ÌÅͰ¡ ÀÌ CertStoreSpi
¿¡ ´ëÇØ¼ ºÎÀûÀýÇÑ °æ¿ì¸Þ¼ÒµåÀÇ »ó¼¼ |
public abstract Collection engineGetCertificates(CertSelector selector) throws CertStoreException
Certificate
ÀÇ Collection
¸¦ µ¹·ÁÁÝ´Ï´Ù. ½Ç·ºÅÍ¿¡ ÀÏÄ¡ÇÏ´Â Certificate
°¡ ¾ø´Â °æ¿ì´Â ÇÏ´ÃÀÇ Collection
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
CertStore
ÀÇ Å¸ÀÔ¿¡ µû¶ó¼´Â ½Ç·ºÅÍ¿¡ ÀÏÄ¡ÇÏ´Â Certificate
ÀÇ ¸ðµç °ÍÀÌ °á°úÀÇ Collection
¿¡ Æ÷ÇÔµÇÁö ¾Ê´Â °ÍÀÌ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, LDAP CertStore
¿¡¼´Â µð·ºÅ丮³»ÀÇ ¸ðµç ¿£Æ®¸®¸¦ °Ë»öÇÏÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡, °Ë»öÇÏ´Â Certificate
°¡ Æ÷ÇÔµÈ´Ù°í »ý°¢µÇ´Â ¿£Æ®¸®¿¡ Á¼Çô °Ë»öÇÕ´Ï´Ù.
CertStore
¾È¿¡´Â Áõ¸í¼¸¦ ã¾Æ³»±â À§ÇÑ Æ¯Á¤ÀÇ Á¶°ÇÀ» Æ÷ÇÔÇÑ ºñ null ÀÇ CertSelector
°¡ Á¦°øµÇÁö ¾Ê´Â ÀÌ»óCertStoreException
¸¦ ½½·Î¿ì ÇÏ´Â °ÍÀÌ ÀÖ½À´Ï´Ù (ƯÈ÷ LDAP CertStore
). ¹ßÇàÀÚ³ª ÇÇÀÎÁõÀÚÀÇ À̸§Àº Ưº°È÷ µµ¿òÀÌ µÇ´Â Á¶°ÇÀÌ µË´Ï´Ù.
selector
- µ¹·ÁÁÖ¾îÁö´Â Certificate
¸¦ ¼±ÅÃÇϱâ À§Çؼ ÀÌ¿ëÇÏ´Â CertSelector
. null
¸¦ ÁöÁ¤Çϸé(ÀÚ), ¼Æ÷Æ®µÇ°í ÀÖ´Â °æ¿ì´Â ¸ðµç Certificate
¸¦ µ¹·ÁÁÝ´Ï´Ù.
Certificate
ÀÇ Collection
. null ´Â µÇÁö ¾Ê´Â´Ù
CertStoreException
- ¿¹¿Ü°¡ ¹ß»ýÇÏ´Â °æ¿ìpublic abstract Collection engineGetCRLs(CRLSelector selector) throws CertStoreException
CRL
ÀÇ Collection
¸¦ µ¹·ÁÁÝ´Ï´Ù. ½Ç·ºÅÍ¿¡ ÀÏÄ¡ÇÏ´Â CRL
°¡ ¾ø´Â °æ¿ì´Â ÇÏ´ÃÀÇ Collection
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
CertStore
ÀÇ Å¸ÀÔ¿¡ µû¶ó¼´Â ½Ç·ºÅÍ¿¡ ÀÏÄ¡ÇÏ´Â CRL
ÀǸðµç °ÍÀÌ °á°úÀÇ Collection
¿¡ Æ÷ÇÔµÇÁö ¾Ê´Â °ÍÀÌ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, LDAP CertStore
¿¡¼´Â µð·ºÅ丮³»ÀÇ ¸ðµç ¿£Æ®¸®¸¦ °Ë»öÇÏÁö ¾Ê½À´Ï´Ù. ´ë½Å¿¡, °Ë»öÇÏ´Â CRL
°¡ Æ÷ÇÔµÈ´Ù°í »ý°¢µÇ´Â ¿£Æ®¸®¿¡ Á¼Çô °Ë»öÇÕ´Ï´Ù.
CertStore
¾È¿¡´Â Áõ¸í¼¸¦ ã¾Æ³»±â À§ÇÑ Æ¯Á¤ÀÇ Á¶°ÇÀ» Æ÷ÇÔÇÑ ºñ null ÀÇ CRLSelector
°¡ Á¦°øµÇÁö ¾Ê´Â ÀÌ»óCertStoreException
¸¦ ½½·Î¿ì ÇÏ´Â °ÍÀÌ ÀÖ½À´Ï´Ù (ƯÈ÷ LDAP CertStore
). ¹ßÇàÀÚÀÇ À̸§À̳ª üũ ´ë»óÀÇ Áõ¸í¼´Â Ưº°È÷ µµ¿òÀÌ µË´Ï´Ù.
selector
- µ¹·ÁÁÖ¾îÁö´Â CRL
¸¦ ¼±ÅÃÇϱâ À§Çؼ ÀÌ¿ëÇÏ´Â CRLSelector
. null
¸¦ ÁöÁ¤Çϸé(ÀÚ), ¼Æ÷Æ®µÇ°í ÀÖ´Â °æ¿ì´Â ¸ðµç CRL
¸¦ µ¹·ÁÁÝ´Ï´Ù.
CRL
ÀÇ Collection
. null ´Â µÇÁö ¾Ê´Â´Ù
CertStoreException
- ¿¹¿Ü°¡ ¹ß»ýÇÏ´Â °æ¿ì
|
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.