Java Doc for X500PrincipalTest.java in  » Apache-Harmony-Java-SE » javax-package » javax » security » auth » x500 » 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 » javax package » javax.security.auth.x500 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.security.auth.x500.X500PrincipalTest

X500PrincipalTest
public class X500PrincipalTest extends TestCase (Code)
Tests X500Principal class Distinguished name(DN) strings follows BNF syntax specified in RFC 2253 and RFC 1779
See Also:    http://www.ietf.org/rfc/rfc2253.txt
See Also:    http://www.ietf.org/rfc/rfc1779.txt
See Also:    http://asn1.elibel.tm.fr/en/standards/index.htm

Inner Class :public static class TestList extends ArrayList

Field Summary
final public static  String[]RFC2253_SPECIAL
    


Method Summary
public  voidtestEmptyInputName()
    
public  voidtestEmptyInputName_0()
    
public  voidtestEmptyInputName_1()
    
public  voidtestEmptyInputName_2()
    
public  voidtestEncodingFromEncoding()
    
public  voidtestEncodingFromFile()
    
public  voidtestEquals()
    
public  voidtestGetNameUnicodeNormalized()
    
public  voidtestGetName_CANONICAL()
    
public  voidtestGetName_CANONICAL_SortOrder()
    
public  voidtestGetName_CANONICAL_SortOrder_01()
    
public  voidtestGetName_CANONICAL_SortOrder_02()
    
public  voidtestGetName_CANONICAL_SortOrder_03()
    
public  voidtestGetName_CANONICAL_SortOrder_04()
    
public  voidtestGetName_CANONICAL_SortOrder_05()
    
public  voidtestGetName_CANONICAL_SortOrder_06()
    
public  voidtestGetName_CANONICAL_SortOrder_07()
    
public  voidtestGetName_EncodingWithWrongOidButGoodName_MultAVA_CANONICAL()
    
public  voidtestGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779()
    
public  voidtestGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC2253()
    
public  voidtestGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_CANONICAL()
    
public  voidtestGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC1779()
    
public  voidtestGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC2253()
    
public  voidtestGetName_RFC1779()
    
public  voidtestGetName_RFC2253()
    
public  voidtestGetName_wrongOidButGoodName_RFC1779()
    
public  voidtestGetName_wrongOidButGoodName_RFC2253()
    
public  voidtestHashCode()
    
public  voidtestIllegalFormat()
    
public  voidtestIllegalInputArray()
    
public  voidtestIllegalInputArray_0()
    
public  voidtestIllegalInputArray_01()
    
public  voidtestIllegalInputArray_02()
    
public  voidtestIllegalInputArray_03()
    
public  voidtestIllegalInputArray_05()
    
public  voidtestIllegalInputArray_05_is()
    
public  voidtestIllegalInputArray_is()
    
public  voidtestIllegalInputName()
    
public  voidtestIllegalInputName_01()
    
public  voidtestIllegalInputName_02()
    
public  voidtestIllegalInputName_04()
    
public  voidtestIllegalInputName_05()
    
public  voidtestIllegalInputName_06()
    
public  voidtestIllegalInputName_07()
    
public  voidtestIllegalInputName_08()
    
public  voidtestIllegalInputName_09()
    
public  voidtestIllegalInputName_10()
    
public  voidtestIllegalInputName_11()
    
public  voidtestIllegalInputName_12()
    
public  voidtestIllegalInputName_13()
    
public  voidtestIllegalInputName_15()
    
public  voidtestIllegalInputName_16()
    
public  voidtestInitClause()
    
public  voidtestInvalidDN()
    
public  voidtestKWAsOid_CANONICAL()
    
public  voidtestKWAsOid_RFC1779()
    
public  voidtestKWAsOid_RFC2253()
    
public  voidtestNameCR_CANONICAL()
    
public  voidtestNameCR_RFC1779()
    
public  voidtestNameCR_RFC2253()
    
public  voidtestNameGetEncoding()
    
public  voidtestNameGetEncoding_01()
    
public  voidtestNameOnlySpaces_CANONICAL()
    
public  voidtestNameOnlySpaces_RFC1779()
    
public  voidtestNameOnlySpaces_RFC2253()
    
public  voidtestNameQu()
    
public  voidtestNameQu_4()
    
public  voidtestNameQu_5()
    
public  voidtestNameQu_CANONICAL_2()
    
public  voidtestNameQu_CANONICAL_3()
    
public  voidtestNameQu_RFC1779_2()
    
public  voidtestNameQu_RFC1779_3()
    
public  voidtestNameQu_RFC2253_2()
    
public  voidtestNameQu_RFC2253_3()
    
public  voidtestNameSingleEscapedSpace()
    
public  voidtestNameSpaceFromEncoding_CANONICAL()
    
public  voidtestNameSpaceFromEncoding_RFC1779()
    
public  voidtestNameSpaceFromEncoding_RFC2253()
    
public  voidtestNameSpaces_CANONICAL()
    
public  voidtestNameSpaces_CANONICAL_01()
    
public  voidtestNameSpaces_CANONICAL_02()
    
public  voidtestNameSpaces_RFC1779()
    
public  voidtestNameSpaces_RFC1779_01()
    
public  voidtestNameSpaces_RFC1779_02()
    
public  voidtestNameSpaces_RFC2253()
    
public  voidtestNameSpaces_RFC2253_01()
    
public  voidtestNameSpaces_RFC2253_02()
    
public  voidtestNameSpecialCharsFromEncoding_CANONICAL()
    
public  voidtestNameSpecialCharsFromEncoding_RFC1779()
    
public  voidtestNameSpecialCharsFromEncoding_RFC2253()
    
public  voidtestNameSpecialChars_CANONICAL()
    
public  voidtestNameSpecialChars_CANONICAL_01()
    
public  voidtestNameSpecialChars_CANONICAL_02()
    
public  voidtestNameSpecialChars_CANONICAL_03()
    
public  voidtestNameSpecialChars_CANONICAL_04()
    
public  voidtestNameSpecialChars_CANONICAL_05()
    
public  voidtestNameSpecialChars_CANONICAL_6()
    
public  voidtestNameSpecialChars_RFC1779()
    
public  voidtestNameSpecialChars_RFC1779_01()
    
public  voidtestNameSpecialChars_RFC1779_02()
    
public  voidtestNameSpecialChars_RFC1779_03()
    
public  voidtestNameSpecialChars_RFC1779_04()
    
public  voidtestNameSpecialChars_RFC1779_05()
    
public  voidtestNameSpecialChars_RFC1779_6()
    
public  voidtestNameSpecialChars_RFC2253()
    
public  voidtestNameSpecialChars_RFC2253_01()
    
public  voidtestNameSpecialChars_RFC2253_02()
    
public  voidtestNameSpecialChars_RFC2253_03()
    
public  voidtestNameSpecialChars_RFC2253_04()
    
public  voidtestNameSpecialChars_RFC2253_05()
    
public  voidtestNameSpecialChars_RFC2253_6()
    
public  voidtestNameWithQuotation()
    
public  voidtestNameWithQuotation_01()
    
public  voidtestNameWithQuotation_02()
    
public  voidtestNameWithQuotation_03()
    
public  voidtestOid_CANONICAL()
    
public  voidtestOid_RFC1779()
    
public  voidtestOid_RFC2253()
    
public  voidtestSafeEncoding()
    
public  voidtestSemiIllegalInputArray_04()
    
public  voidtestSemiIllegalInputName_14()
    
public  voidtestStreamGetName_CANONICAL()
    
public  voidtestStreamGetName_RFC1779()
    
public  voidtestStreamGetName_RFC2253()
    
public  voidtestStreamPosition()
    
public  voidtestStreamPosition_0()
    
public  voidtestStreamPosition_1()
    
public  voidtestStreamPosition_2()
    
public  voidtestToString()
    
public  voidtestValidDN()
    
public  voidtestValidEncoding()
    
public  voidtest_equalsLjava_lang_Object()
    

Field Detail
RFC2253_SPECIAL
final public static String[] RFC2253_SPECIAL(Code)





Method Detail
testEmptyInputName
public void testEmptyInputName()(Code)
Inits X500Principal with empty string gets encoding compares with expected encoding



testEmptyInputName_0
public void testEmptyInputName_0()(Code)
Inits X500Principal with string, where there is no value checks if proper exception is thrown



testEmptyInputName_1
public void testEmptyInputName_1()(Code)



testEmptyInputName_2
public void testEmptyInputName_2()(Code)



testEncodingFromEncoding
public void testEncodingFromEncoding()(Code)



testEncodingFromFile
public void testEncodingFromFile() throws Exception(Code)



testEquals
public void testEquals() throws Exception(Code)
Inits X500Principal with byte array Inits other X500Principal with equivalent string checks if equals returns true for first against second one



testGetNameUnicodeNormalized
public void testGetNameUnicodeNormalized() throws Exception(Code)
FIXME test is failed - implement unicode normalization
throws:
  Exception -



testGetName_CANONICAL
public void testGetName_CANONICAL() throws Exception(Code)
Inits X500Principal with byte array gets Name in CANONICAL format compares with expected value of name



testGetName_CANONICAL_SortOrder
public void testGetName_CANONICAL_SortOrder() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_01
public void testGetName_CANONICAL_SortOrder_01() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and Oid which does not fall into any keyword gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_02
public void testGetName_CANONICAL_SortOrder_02() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and Oid which does not fall into any keyword, and value given in hex format gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_03
public void testGetName_CANONICAL_SortOrder_03() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and 2 Oids which do not fall into any keyword gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_04
public void testGetName_CANONICAL_SortOrder_04() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and 2 Oids which do not fall into any keyword gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_05
public void testGetName_CANONICAL_SortOrder_05() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and 2 Oids which do not fall into any keyword gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_06
public void testGetName_CANONICAL_SortOrder_06() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and 2 Oids which do not fall into any keyword gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_CANONICAL_SortOrder_07
public void testGetName_CANONICAL_SortOrder_07() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and 2 Oids which do not fall into any keyword gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_EncodingWithWrongOidButGoodName_MultAVA_CANONICAL
public void testGetName_EncodingWithWrongOidButGoodName_MultAVA_CANONICAL() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and Oid which does not fall into any keyword Gets encoding Inits other X500Principal with the encoding gets string in CANONICAL format compares with expected value paying attention on sorting order of AVAs



testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779
public void testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC1779() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and Oid which does not fall into any keyword Gets encoding Inits other X500Principal with the encoding gets string in RFC1779 format compares with expected value paying attention on sorting order of AVAs



testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC2253
public void testGetName_EncodingWithWrongOidButGoodName_MultAVA_RFC2253() throws Exception(Code)
Inits X500Principal with a string, there are multiple AVAs and Oid which does not fall into any keyword Gets encoding Inits other X500Principal with the encoding gets string in RFC2253 format compares with expected value paying attention on sorting order of AVAs



testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_CANONICAL
public void testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_CANONICAL() throws Exception(Code)
Inits X500Principal with a string, where OID does not fall into any keyword gets encoded form inits new X500Principal with the encoding gets string in CANONICAL format compares with expected value



testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC1779
public void testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC1779() throws Exception(Code)
Inits X500Principal with a string, where OID does not fall into any keyword gets encoded form inits new X500Principal with the encoding gets string in RFC1779 format compares with expected value



testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC2253
public void testGetName_EncodingWithWrongOidButGoodName_SeveralRDNs_RFC2253() throws Exception(Code)
Inits X500Principal with a string, where OID does not fall into any keyword gets encoded form inits new X500Principal with the encoding gets string in RFC2253 format compares with expected value



testGetName_RFC1779
public void testGetName_RFC1779() throws Exception(Code)
Inits X500Principal with byte array gets Name in RFC1779 format compares with expected value of name



testGetName_RFC2253
public void testGetName_RFC2253() throws Exception(Code)
Inits X500Principal with byte array gets Name in RFC2253 format compares with expected value of name



testGetName_wrongOidButGoodName_RFC1779
public void testGetName_wrongOidButGoodName_RFC1779() throws Exception(Code)
Inits X500Principal with a string, where OID does not fall into any keyword gets string in RFC1779 format compares with expected value



testGetName_wrongOidButGoodName_RFC2253
public void testGetName_wrongOidButGoodName_RFC2253() throws Exception(Code)
Inits X500Principal with a string, where OID does not fall into any keyword gets string in RFC2253 format compares with expected value



testHashCode
public void testHashCode() throws Exception(Code)
Inits X500Principal with byte array gets hashCode compares with expected value



testIllegalFormat
public void testIllegalFormat()(Code)
Inits X500Principal with string Calls getName with improper parameter as format checks if proper exception is thrown



testIllegalInputArray
public void testIllegalInputArray()(Code)
Inits X500Principal with byte array with wrong length field checks if proper exception is thrown



testIllegalInputArray_0
public void testIllegalInputArray_0()(Code)
Inits X500Principal with byte array = null checks if proper exception is thrown



testIllegalInputArray_01
public void testIllegalInputArray_01()(Code)
Inits X500Principal with byte array with wrong inner Sequence tag field checks if proper exception is thrown



testIllegalInputArray_02
public void testIllegalInputArray_02()(Code)
Inits X500Principal with byte array with wrong last byte of OID checks if proper exception is thrown



testIllegalInputArray_03
public void testIllegalInputArray_03()(Code)
Inits X500Principal with byte array with wrong length of OID checks if proper exception is thrown



testIllegalInputArray_05
public void testIllegalInputArray_05()(Code)
Inits X500Principal with byte array with wrong length of value checks if proper exception is thrown



testIllegalInputArray_05_is
public void testIllegalInputArray_05_is()(Code)
Inits X500Principal with input stream with wrong length of value checks if proper exception is thrown



testIllegalInputArray_is
public void testIllegalInputArray_is()(Code)
Inits X500Principal with input stream with wrong length field checks if proper exception is thrown



testIllegalInputName
public void testIllegalInputName()(Code)
Inits X500Principal with string, where DN name is improper "CNN" checks if proper exception is thrown



testIllegalInputName_01
public void testIllegalInputName_01()(Code)
Inits X500Principal with string, where there is leading ';' checks if proper exception is thrown



testIllegalInputName_02
public void testIllegalInputName_02()(Code)
Inits X500Principal with string, where there is leading '=' checks if proper exception is thrown



testIllegalInputName_04
public void testIllegalInputName_04()(Code)
Inits X500Principal with string, where value is given in wrong hex format checks if proper exception is thrown



testIllegalInputName_05
public void testIllegalInputName_05()(Code)
Inits X500Principal with string, where value is given with special chars checks if proper exception is thrown



testIllegalInputName_06
public void testIllegalInputName_06()(Code)
Inits X500Principal with string, where value is given with special chars Compatibility issue: according RFC 2253 such string is invalid but we accept it, not string char is escaped



testIllegalInputName_07
public void testIllegalInputName_07()(Code)
Inits X500Principal with string, where value is given with not string chars Compatibility issue: according RFC 2253 such string is invalid but we accept it, not string char is escaped



testIllegalInputName_08
public void testIllegalInputName_08()(Code)
Inits X500Principal with string, where value is given with special chars Compatibility issue: according RFC 2253 such string is invalid but we accept it, special char is escaped



testIllegalInputName_09
public void testIllegalInputName_09()(Code)
Inits X500Principal with string, where value is given with special chars checks if proper exception is thrown



testIllegalInputName_10
public void testIllegalInputName_10()(Code)
Inits X500Principal with string, where value is given with special chars checks if proper exception is thrown



testIllegalInputName_11
public void testIllegalInputName_11()(Code)
Inits X500Principal with string, where value is given with special chars checks if proper exception is thrown



testIllegalInputName_12
public void testIllegalInputName_12()(Code)
Inits X500Principal with string, where value is given with special chars checks if proper exception is thrown



testIllegalInputName_13
public void testIllegalInputName_13()(Code)
Inits X500Principal with string, where value is given with special chars checks if proper exception is thrown



testIllegalInputName_15
public void testIllegalInputName_15()(Code)



testIllegalInputName_16
public void testIllegalInputName_16()(Code)



testInitClause
public void testInitClause()(Code)



testInvalidDN
public void testInvalidDN()(Code)



testKWAsOid_CANONICAL
public void testKWAsOid_CANONICAL() throws Exception(Code)
Inits X500Principal with byte array, where Oid does fall into any keyword, but not given as a keyword Value is given as hex value (extra spaces are given) gets Name in CANONICAL format compares with expected value of name



testKWAsOid_RFC1779
public void testKWAsOid_RFC1779() throws Exception(Code)
Inits X500Principal with byte array, where Oid does fall into any keyword, but not given as a keyword Value is given as hex value (extra spaces are given) gets Name in RFC1779 format compares with expected value of name



testKWAsOid_RFC2253
public void testKWAsOid_RFC2253() throws Exception(Code)
Inits X500Principal with byte array, where Oid does fall into any keyword, but not given as a keyword Value is given as hex value (extra spaces are given) gets Name in RFC2253 format compares with expected value of name



testNameCR_CANONICAL
public void testNameCR_CANONICAL() throws Exception(Code)
Inits X500Principal with the string with special characters - CN=A\nB gets Name in CANONICAL format compares with expected value of name - cn=a\nb



testNameCR_RFC1779
public void testNameCR_RFC1779() throws Exception(Code)
Inits X500Principal with the string with special characters - CN=A\nB gets Name in RFC1779 format compares with expected value of name - CN="A\nB"



testNameCR_RFC2253
public void testNameCR_RFC2253() throws Exception(Code)
Inits X500Principal with the string with special characters - CN=A\nB gets Name in RFC2253 format compares with expected value of name - CN=A\nB



testNameGetEncoding
public void testNameGetEncoding() throws Exception(Code)
Inits X500Principal with a string gets encoded form compares with expected byte array



testNameGetEncoding_01
public void testNameGetEncoding_01() throws Exception(Code)
Inits X500Principal with a string gets encoded form compares with expected byte array



testNameOnlySpaces_CANONICAL
public void testNameOnlySpaces_CANONICAL()(Code)
Inits X500Principal with string with only spaces, gets Name in CANONICAL format:leading and trailing white space chars are removed even string doesn't have other chars (bug???)



testNameOnlySpaces_RFC1779
public void testNameOnlySpaces_RFC1779()(Code)
Inits X500Principal with string with spaces gets Name in RFC2253 format compares with expected value of name



testNameOnlySpaces_RFC2253
public void testNameOnlySpaces_RFC2253()(Code)
Inits X500Principal with string with spaces gets Name in RFC2253 format compares with expected value of name



testNameQu
public void testNameQu() throws Exception(Code)
Inits X500Principal with the string with special characters - ""B checks if the proper exception is thrown



testNameQu_4
public void testNameQu_4() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\", C=B" gets Name in RFC1779 format compares with expected value of name - "A\", C=B"



testNameQu_5
public void testNameQu_5() throws Exception(Code)
Inits X500Principal with the string with special characters - CN="A\\", C=B gets Name in RFC1779 format compares with expected value of name - CN="A\\", C=B



testNameQu_CANONICAL_2
public void testNameQu_CANONICAL_2() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\"B" gets Name in CANONICAL format compares with expected value of name - a\"b



testNameQu_CANONICAL_3
public void testNameQu_CANONICAL_3() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\"" gets Name in CANONICAL format compares with expected value of name - A\"



testNameQu_RFC1779_2
public void testNameQu_RFC1779_2() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\"B" gets Name in RFC1779 format compares with expected value of name - "A\"B"



testNameQu_RFC1779_3
public void testNameQu_RFC1779_3() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\"" gets Name in RFC1779 format compares with expected value of name - "A\""



testNameQu_RFC2253_2
public void testNameQu_RFC2253_2() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\"B" gets Name in RFC2253 format compares with expected value of name - A\"B



testNameQu_RFC2253_3
public void testNameQu_RFC2253_3() throws Exception(Code)
Inits X500Principal with the string with special characters - "A\"" gets Name in RFC2253 format compares with expected value of name - A\"



testNameSingleEscapedSpace
public void testNameSingleEscapedSpace()(Code)
Inits X500Principal with string as single escaped space gets encoding compares with expected encoding



testNameSpaceFromEncoding_CANONICAL
public void testNameSpaceFromEncoding_CANONICAL() throws Exception(Code)
Inits X500Principal with byte array, where there are leading and tailing spaces gets Name in CANONICAL format compares with expected value of name



testNameSpaceFromEncoding_RFC1779
public void testNameSpaceFromEncoding_RFC1779() throws Exception(Code)
Inits X500Principal with byte array, where there are leading and tailing spaces gets Name in RFC1779 format compares with expected value of name



testNameSpaceFromEncoding_RFC2253
public void testNameSpaceFromEncoding_RFC2253() throws Exception(Code)
Inits X500Principal with byte array, where there are leading and tailing spaces gets Name in RFC2253 format compares with expected value of name



testNameSpaces_CANONICAL
public void testNameSpaces_CANONICAL() throws Exception(Code)
Inits X500Principal with the string with special characters - B\'space' gets Name in CANONICAL format compares with expected value of name - B\



testNameSpaces_CANONICAL_01
public void testNameSpaces_CANONICAL_01() throws Exception(Code)
Inits X500Principal with the string with special characters - "B'space''space''space'A" gets Name in CANONICAL format compares with expected value of name - b'space'a



testNameSpaces_CANONICAL_02
public void testNameSpaces_CANONICAL_02() throws Exception(Code)
Inits X500Principal with the string with special characters - \\'space''space'B gets Name in CANONICAL format compares with expected value of name - \'space''space'b



testNameSpaces_RFC1779
public void testNameSpaces_RFC1779() throws Exception(Code)
Inits X500Principal with the string with special characters - B\'space' gets Name in RFC1779 format compares with expected value of name - "B "



testNameSpaces_RFC1779_01
public void testNameSpaces_RFC1779_01() throws Exception(Code)
Inits X500Principal with the string with special characters - "B'space''space''space'A" gets Name in RFC1779 format compares with expected value of name - "B A"



testNameSpaces_RFC1779_02
public void testNameSpaces_RFC1779_02() throws Exception(Code)
Inits X500Principal with the string with special characters - \\'space''space'B gets Name in RFC1779 format compares with expected value of name - " B"



testNameSpaces_RFC2253
public void testNameSpaces_RFC2253() throws Exception(Code)
Inits X500Principal with the string with special characters - B\'space' gets Name in RFC2253 format compares with expected value of name - B\'space'



testNameSpaces_RFC2253_01
public void testNameSpaces_RFC2253_01() throws Exception(Code)
Inits X500Principal with the string with special characters - "B'space''space''space'A" gets Name in 2253 format compares with expected value of name - B'space''space''space'A



testNameSpaces_RFC2253_02
public void testNameSpaces_RFC2253_02() throws Exception(Code)
Inits X500Principal with the string with special characters - \\'space''space'B gets Name in RFC1779 format compares with expected value of name - \'space''space'B



testNameSpecialCharsFromEncoding_CANONICAL
public void testNameSpecialCharsFromEncoding_CANONICAL() throws Exception(Code)
Inits X500Principal with byte array, where there are special characters gets Name in CANONICAL format compares with expected value of name, checks if the characters are escaped



testNameSpecialCharsFromEncoding_RFC1779
public void testNameSpecialCharsFromEncoding_RFC1779() throws Exception(Code)
Inits X500Principal with byte array, where there are special characters gets Name in RFC1779 format compares with expected value of name, checks if the string is in quotes



testNameSpecialCharsFromEncoding_RFC2253
public void testNameSpecialCharsFromEncoding_RFC2253() throws Exception(Code)
Inits X500Principal with byte array, where there are special characters gets Name in RFC1779 format compares with expected value of name, checks if the characters are escaped



testNameSpecialChars_CANONICAL
public void testNameSpecialChars_CANONICAL() throws Exception(Code)
Inits X500Principal with the string with special characters - \"B gets Name in CANONICAL format compares with expected value of name - "\b"



testNameSpecialChars_CANONICAL_01
public void testNameSpecialChars_CANONICAL_01() throws Exception(Code)
Inits X500Principal with the string with special characters - \\nB gets Name in CANONICAL format compares with expected value of name - \\nb



testNameSpecialChars_CANONICAL_02
public void testNameSpecialChars_CANONICAL_02() throws Exception(Code)
Inits X500Principal with the string with special characters - \\B gets Name in CANONICAL format compares with expected value of name - \\b



testNameSpecialChars_CANONICAL_03
public void testNameSpecialChars_CANONICAL_03() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"DEF" gets Name in CANONICAL format compares with expected value of name - abc"def"



testNameSpecialChars_CANONICAL_04
public void testNameSpecialChars_CANONICAL_04() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"D#EF" gets Name in RFC1779 format compares with expected value of name - abc"d#ef"



testNameSpecialChars_CANONICAL_05
public void testNameSpecialChars_CANONICAL_05()(Code)
Inits X500Principal with the string with special characters - X#YZ gets Name in CANONICAL format compares with expected value of name - x#yz



testNameSpecialChars_CANONICAL_6
public void testNameSpecialChars_CANONICAL_6() throws Exception(Code)
Inits X500Principal with the string with special characters - CN=\#XYZ gets Name in CANONICAL format compares with expected value of name - cn=\#xyz



testNameSpecialChars_RFC1779
public void testNameSpecialChars_RFC1779() throws Exception(Code)
Inits X500Principal with the string with special characters - \"B gets Name in RFC1779 format compares with expected value of name - "\B"



testNameSpecialChars_RFC1779_01
public void testNameSpecialChars_RFC1779_01() throws Exception(Code)
Inits X500Principal with the string with special characters - \\nB gets Name in RFC1779 format compares with expected value of name - "\nB"



testNameSpecialChars_RFC1779_02
public void testNameSpecialChars_RFC1779_02() throws Exception(Code)
Inits X500Principal with the string with special characters - \\B gets Name in RFC1779 format compares with expected value of name - "\B"



testNameSpecialChars_RFC1779_03
public void testNameSpecialChars_RFC1779_03() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"DEF" gets Name in RFC1779 format compares with expected value of name - "ABCDEF"



testNameSpecialChars_RFC1779_04
public void testNameSpecialChars_RFC1779_04() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"D#EF" gets Name in RFC1779 format compares with expected value of name - "ABCD#EF"



testNameSpecialChars_RFC1779_05
public void testNameSpecialChars_RFC1779_05()(Code)
Inits X500Principal with the string with special characters - X#YZ gets Name in RFC1779 format compares with expected value of name - "X#YZ"



testNameSpecialChars_RFC1779_6
public void testNameSpecialChars_RFC1779_6() throws Exception(Code)
Inits X500Principal with the string with special characters - CN=\#XYZ gets Name in RFC1779 format compares with expected value of name - CN="#XYZ"



testNameSpecialChars_RFC2253
public void testNameSpecialChars_RFC2253() throws Exception(Code)
Inits X500Principal with the string with special characters - \"B gets Name in RFC2253 format compares with expected value of name - "\B"



testNameSpecialChars_RFC2253_01
public void testNameSpecialChars_RFC2253_01() throws Exception(Code)
Inits X500Principal with the string with special characters - \\nB gets Name in RFC2253 format compares with expected value of name - \\nB



testNameSpecialChars_RFC2253_02
public void testNameSpecialChars_RFC2253_02() throws Exception(Code)
Inits X500Principal with the string with special characters - \\B gets Name in RFC2253 format compares with expected value of name - \\B



testNameSpecialChars_RFC2253_03
public void testNameSpecialChars_RFC2253_03() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"DEF" gets Name in RFC2253 format compares with expected value of name - ABC"DEF"



testNameSpecialChars_RFC2253_04
public void testNameSpecialChars_RFC2253_04() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"D#EF" gets Name in RFC1779 format compares with expected value of name - ABCD\#EF



testNameSpecialChars_RFC2253_05
public void testNameSpecialChars_RFC2253_05()(Code)
Inits X500Principal with the string with special characters - X#YZ gets Name in RFC2253 format compares with expected value of name - X\#YZ



testNameSpecialChars_RFC2253_6
public void testNameSpecialChars_RFC2253_6() throws Exception(Code)
Inits X500Principal with the string with special characters - CN=\#XYZ gets Name in RFC2253 format compares with expected value of name - CN=\#XYZ



testNameWithQuotation
public void testNameWithQuotation() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"DEF" gets encoding compares with expected encoding



testNameWithQuotation_01
public void testNameWithQuotation_01() throws Exception(Code)
Inits X500Principal with the string with special characters - "ABCDEF checks if the proper exception is thrown



testNameWithQuotation_02
public void testNameWithQuotation_02() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"D#EF" gets encoding compares with expected encoding



testNameWithQuotation_03
public void testNameWithQuotation_03() throws Exception(Code)
Inits X500Principal with the string with special characters - ABC"DEF" Compatibility issue: according RFC 2253 such string is invalid but we accept it, not string char is escaped



testOid_CANONICAL
public void testOid_CANONICAL() throws Exception(Code)
Inits X500Principal with byte array, where Oid does not fall into any keyword gets Name in CANONICAL format compares with expected value of name



testOid_RFC1779
public void testOid_RFC1779() throws Exception(Code)
Inits X500Principal with byte array, where Oid does not fall into any keyword gets Name in RFC1779 format compares with expected value of name



testOid_RFC2253
public void testOid_RFC2253() throws Exception(Code)
Inits X500Principal with byte array, where Oid does not fall into any keyword gets Name in RFC2253 format compares with expected value of name



testSafeEncoding
public void testSafeEncoding()(Code)
tests if the encoding is backed



testSemiIllegalInputArray_04
public void testSemiIllegalInputArray_04()(Code)
Inits X500Principal with byte array with wrong tag of value checks if it is ignored



testSemiIllegalInputName_14
public void testSemiIllegalInputName_14()(Code)
Inits X500Principal with string, where value is given in hex format, but improper tag checks if it is ignored



testStreamGetName_CANONICAL
public void testStreamGetName_CANONICAL() throws Exception(Code)
Inits X500Principal with byte array gets Name in CANONICAL format compares with expected value of name



testStreamGetName_RFC1779
public void testStreamGetName_RFC1779() throws Exception(Code)
Inits X500Principal with byte array gets Name in RFC1779 format compares with expected value of name



testStreamGetName_RFC2253
public void testStreamGetName_RFC2253() throws Exception(Code)
Inits X500Principal with byte array gets Name in RFC2253 format compares with expected value of name



testStreamPosition
public void testStreamPosition() throws Exception(Code)



testStreamPosition_0
public void testStreamPosition_0() throws Exception(Code)



testStreamPosition_1
public void testStreamPosition_1() throws Exception(Code)



testStreamPosition_2
public void testStreamPosition_2() throws Exception(Code)



testToString
public void testToString() throws Exception(Code)
Inits X500Principal with byte array gets toString checks the result



testValidDN
public void testValidDN() throws Exception(Code)



testValidEncoding
public void testValidEncoding()(Code)



test_equalsLjava_lang_Object
public void test_equalsLjava_lang_Object()(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.