Java Doc for X509CertSelectorTest.java in  » Apache-Harmony-Java-SE » java-package » java » security » cert » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.security.cert 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.security.cert.X509CertSelectorTest

X509CertSelectorTest
public class X509CertSelectorTest extends TestCase (Code)
X509CertSelectorTest




Method Summary
public static  voidmain(String[] args)
    
public static  Testsuite()
    
public  voidtestAddPathToName1()
     addPathToName(int type, String name) method testing.
public  voidtestAddPathToName2()
     addPathToName(int type, byte[] name) method testing.
public  voidtestAddSubjectAlternativeName1()
     addSubjectAlternativeName(int type, String name) method testing.
public  voidtestAddSubjectAlternativeName2()
     addSubjectAlternativeName(int type, byte[] name) method testing.
public  voidtestClone()
     clone() method testing.
public  voidtestGetAuthorityKeyIdentifier()
     getAuthorityKeyIdentifier() method testing.
public  voidtestGetBasicConstraints()
     getBasicConstraints() method testing.
public  voidtestGetCertificate()
     getCertificate() method testing.
public  voidtestGetCertificateValid()
     getCertificateValid() method testing.
public  voidtestGetExtendedKeyUsage()
     getExtendedKeyUsage() method testing.
public  voidtestGetIssuer()
     getIssuer() method testing.
public  voidtestGetIssuerAsBytes()
     getIssuerAsBytes() method testing.
public  voidtestGetIssuerAsString()
     getIssuerAsString() method testing.
public  voidtestGetKeyUsage()
     getKeyUsage() method testing.
public  voidtestGetMatchAllSubjectAltNames()
     getMatchAllSubjectAltNames() method testing.
public  voidtestGetNameConstraints()
     getNameConstraints() method testing.
public  voidtestGetPathToNames()
     getPathToNames() method testing.
public  voidtestGetPolicy()
     getPolicy() method testing.
public  voidtestGetPrivateKeyValid()
     getPrivateKeyValid() method testing.
public  voidtestGetSerialNumber()
     getSerialNumber() method testing.
public  voidtestGetSubject()
     getSubject() method testing.
public  voidtestGetSubjectAlternativeNames()
     getSubjectAlternativeNames() method testing.
public  voidtestGetSubjectAsBytes()
     getSubjectAsBytes() method testing.
public  voidtestGetSubjectAsString()
     getSubjectAsString() method testing.
public  voidtestGetSubjectKeyIdentifier()
     getSubjectKeyIdentifier() method testing.
public  voidtestGetSubjectPublicKey1()
     getSubjectPublicKey() method testing.
public  voidtestGetSubjectPublicKey2()
     getSubjectPublicKey() method testing.
public  voidtestGetSubjectPublicKeyAlgID()
     getSubjectPublicKeyAlgID() method testing.
public  voidtestMatch()
     match(Certificate cert) method testing.
public  voidtestSetAuthorityKeyIdentifier()
     setAuthorityKeyIdentifier(byte[] authorityKeyID) method testing.
public  voidtestSetBasicConstraints()
     setBasicConstraints(int minMaxPathLen) method testing.
public  voidtestSetCertificate()
     setCertificate(X509Certificate certificate) method testing.
public  voidtestSetCertificateValid()
     setCertificateValid(Date certificateValid) method testing.
public  voidtestSetExtendedKeyUsage()
     setExtendedKeyUsage(Set keyPurposeSet) method testing.
public  voidtestSetIssuer1()
     setIssuer(X500Principal issuer) method testing.
public  voidtestSetIssuer2()
     setIssuer(String issuerDN) method testing.
public  voidtestSetIssuer3()
     setIssuer(byte[] issuerDN) method testing.
public  voidtestSetKeyUsage()
     setKeyUsage(boolean[] keyUsage) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization.
public  voidtestSetMatchAllSubjectAltNames()
     setMatchAllSubjectAltNames(boolean matchAllNames) method testing.
public  voidtestSetNameConstraints0()
     setNameConstraints(byte[] bytes) method testing.
public  voidtestSetNameConstraints1()
     setNameConstraints(byte[] bytes) method testing.
public  voidtestSetNameConstraints2()
     setNameConstraints(byte[] bytes) method testing.
public  voidtestSetPathToNames()
     setPathToNames(Collection> names) method testing.
public  voidtestSetPolicy()
     setPolicy(Set certPolicySet) method testing.
public  voidtestSetPrivateKeyValid()
     setPrivateKeyValid(Date privateKeyValid) method testing.
public  voidtestSetSerialNumber()
     setSerialNumber(BigInteger serial) method testing.
public  voidtestSetSubject1()
     setSubject(X500Principal subject) method testing.
public  voidtestSetSubject2()
     setSubject(String subjectDN) method testing.
public  voidtestSetSubject3()
     setSubject(byte[] subjectDN) method testing.
public  voidtestSetSubjectAlternativeNames()
     setSubjectAlternativeNames(Collection> names) method testing.
public  voidtestSetSubjectKeyIdentifier()
     setSubjectKeyIdentifier(byte[] subjectKeyID) method testing.
public  voidtestSetSubjectPublicKey1()
     setSubjectPublicKey(PublicKey key) method testing.
public  voidtestSetSubjectPublicKey2()
     setSubjectPublicKey(byte[] key) method testing.
public  voidtestSetSubjectPublicKeyAlgID()
     setSubjectPublicKeyAlgID(String oid) method testing.
public  voidtestToString()
     toString() method testing.
public  voidtest_matchLjava_security_cert_Certificate()
    
public  voidtest_setSubjectPublicKeyAlgIDLjava_lang_String()
    



Method Detail
main
public static void main(String[] args)(Code)



suite
public static Test suite()(Code)



testAddPathToName1
public void testAddPathToName1()(Code)
addPathToName(int type, String name) method testing.



testAddPathToName2
public void testAddPathToName2()(Code)
addPathToName(int type, byte[] name) method testing.



testAddSubjectAlternativeName1
public void testAddSubjectAlternativeName1() throws IOException(Code)
addSubjectAlternativeName(int type, String name) method testing.



testAddSubjectAlternativeName2
public void testAddSubjectAlternativeName2()(Code)
addSubjectAlternativeName(int type, byte[] name) method testing.



testClone
public void testClone() throws Exception(Code)
clone() method testing.



testGetAuthorityKeyIdentifier
public void testGetAuthorityKeyIdentifier()(Code)
getAuthorityKeyIdentifier() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified and its modification does not cause the modification of internal object.



testGetBasicConstraints
public void testGetBasicConstraints()(Code)
getBasicConstraints() method testing.



testGetCertificate
public void testGetCertificate()(Code)
getCertificate() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetCertificateValid
public void testGetCertificateValid()(Code)
getCertificateValid() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified and its modification does not cause the modification of internal object.



testGetExtendedKeyUsage
public void testGetExtendedKeyUsage()(Code)
getExtendedKeyUsage() method testing.



testGetIssuer
public void testGetIssuer()(Code)
getIssuer() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetIssuerAsBytes
public void testGetIssuerAsBytes() throws IOException(Code)
getIssuerAsBytes() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetIssuerAsString
public void testGetIssuerAsString()(Code)
getIssuerAsString() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetKeyUsage
public void testGetKeyUsage()(Code)
getKeyUsage() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified and its modification does not cause the modification of internal object.



testGetMatchAllSubjectAltNames
public void testGetMatchAllSubjectAltNames()(Code)
getMatchAllSubjectAltNames() method testing.



testGetNameConstraints
public void testGetNameConstraints()(Code)
getNameConstraints() method testing.



testGetPathToNames
public void testGetPathToNames()(Code)
getPathToNames() method testing.



testGetPolicy
public void testGetPolicy()(Code)
getPolicy() method testing.



testGetPrivateKeyValid
public void testGetPrivateKeyValid()(Code)
getPrivateKeyValid() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified and its modification does not cause the modification of internal object.



testGetSerialNumber
public void testGetSerialNumber()(Code)
getSerialNumber() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetSubject
public void testGetSubject()(Code)
getSubject() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetSubjectAlternativeNames
public void testGetSubjectAlternativeNames()(Code)
getSubjectAlternativeNames() method testing.



testGetSubjectAsBytes
public void testGetSubjectAsBytes() throws IOException(Code)
getSubjectAsBytes() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetSubjectAsString
public void testGetSubjectAsString()(Code)
getSubjectAsString() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testGetSubjectKeyIdentifier
public void testGetSubjectKeyIdentifier()(Code)
getSubjectKeyIdentifier() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified and its modification does not cause the modification of internal object.



testGetSubjectPublicKey1
public void testGetSubjectPublicKey1() throws Exception(Code)
getSubjectPublicKey() method testing. Tests if the method return null in the case of not specified criteria, if the returned value corresponds to specified



testGetSubjectPublicKey2
public void testGetSubjectPublicKey2() throws Exception(Code)
getSubjectPublicKey() method testing. Tests if the method return null in the case of not specified criteria, if the returned value corresponds to specified



testGetSubjectPublicKeyAlgID
public void testGetSubjectPublicKeyAlgID() throws IOException(Code)
getSubjectPublicKeyAlgID() method testing. Tests if the method return null in the case of not specified criteria, if the returned value [does not]corresponds to [not]specified



testMatch
public void testMatch() throws Exception(Code)
match(Certificate cert) method testing. Tests if the null object matches to the selector or does not, and if the certificate conforming to the multiple matching criteria matches or does not..



testSetAuthorityKeyIdentifier
public void testSetAuthorityKeyIdentifier()(Code)
setAuthorityKeyIdentifier(byte[] authorityKeyID) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization.



testSetBasicConstraints
public void testSetBasicConstraints()(Code)
setBasicConstraints(int minMaxPathLen) method testing.



testSetCertificate
public void testSetCertificate()(Code)
setCertificate(X509Certificate certificate) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetCertificateValid
public void testSetCertificateValid()(Code)
setCertificateValid(Date certificateValid) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization.



testSetExtendedKeyUsage
public void testSetExtendedKeyUsage() throws IOException(Code)
setExtendedKeyUsage(Set keyPurposeSet) method testing.



testSetIssuer1
public void testSetIssuer1()(Code)
setIssuer(X500Principal issuer) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetIssuer2
public void testSetIssuer2() throws IOException(Code)
setIssuer(String issuerDN) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetIssuer3
public void testSetIssuer3() throws IOException(Code)
setIssuer(byte[] issuerDN) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetKeyUsage
public void testSetKeyUsage()(Code)
setKeyUsage(boolean[] keyUsage) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization. Also checks if selector matches the certificate which does not have a keyUsage extension.



testSetMatchAllSubjectAltNames
public void testSetMatchAllSubjectAltNames()(Code)
setMatchAllSubjectAltNames(boolean matchAllNames) method testing.



testSetNameConstraints0
public void testSetNameConstraints0() throws IOException(Code)
setNameConstraints(byte[] bytes) method testing. Constructs the NameConstraints DER structure with GeneralNames of types: 1, 2, 6, 7 and set it as a criterion.



testSetNameConstraints1
public void testSetNameConstraints1() throws IOException(Code)
setNameConstraints(byte[] bytes) method testing. Constructs the NameConstraints DER structure with GeneralNames of types: 1, 2, 6, 7 and set it as a criterion.



testSetNameConstraints2
public void testSetNameConstraints2()(Code)
setNameConstraints(byte[] bytes) method testing. Constructs the different NameConstraints DER structures with GeneralNames of type 4 and checks if the different certificates matches or does not.



testSetPathToNames
public void testSetPathToNames()(Code)
setPathToNames(Collection> names) method testing.



testSetPolicy
public void testSetPolicy()(Code)
setPolicy(Set certPolicySet) method testing.



testSetPrivateKeyValid
public void testSetPrivateKeyValid()(Code)
setPrivateKeyValid(Date privateKeyValid) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization.



testSetSerialNumber
public void testSetSerialNumber()(Code)
setSerialNumber(BigInteger serial) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetSubject1
public void testSetSubject1()(Code)
setSubject(X500Principal subject) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetSubject2
public void testSetSubject2() throws IOException(Code)
setSubject(String subjectDN) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetSubject3
public void testSetSubject3() throws IOException(Code)
setSubject(byte[] subjectDN) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testSetSubjectAlternativeNames
public void testSetSubjectAlternativeNames()(Code)
setSubjectAlternativeNames(Collection> names) method testing.



testSetSubjectKeyIdentifier
public void testSetSubjectKeyIdentifier()(Code)
setSubjectKeyIdentifier(byte[] subjectKeyID) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization.



testSetSubjectPublicKey1
public void testSetSubjectPublicKey1() throws Exception(Code)
setSubjectPublicKey(PublicKey key) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match.



testSetSubjectPublicKey2
public void testSetSubjectPublicKey2() throws Exception(Code)
setSubjectPublicKey(byte[] key) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match, and if the initialization object are copied during the initialization.



testSetSubjectPublicKeyAlgID
public void testSetSubjectPublicKeyAlgID() throws Exception(Code)
setSubjectPublicKeyAlgID(String oid) method testing. Tests if any certificates match in the case of null criteria, if [not]proper certificates [do not]match



testToString
public void testToString() throws Exception(Code)
toString() method testing.



test_matchLjava_security_cert_Certificate
public void test_matchLjava_security_cert_Certificate()(Code)



test_setSubjectPublicKeyAlgIDLjava_lang_String
public void test_setSubjectPublicKeyAlgIDLjava_lang_String() throws Exception(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.