Java Doc for X509Name.java in  » EJB-Server-geronimo » crypto » org » apache » geronimo » crypto » asn1 » x509 » 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 » EJB Server geronimo » crypto » org.apache.geronimo.crypto.asn1.x509 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.geronimo.crypto.asn1.ASN1Encodable
      org.apache.geronimo.crypto.asn1.x509.X509Name

All known Subclasses:   org.apache.geronimo.crypto.jce.X509Principal,
X509Name
public class X509Name extends ASN1Encodable (Code)
 RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
 RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
 AttributeTypeAndValue ::= SEQUENCE {
 type  OBJECT IDENTIFIER,
 value ANY }
 


Field Summary
final public static  DERObjectIdentifierC
    
final public static  DERObjectIdentifierCN
    
final public static  DERObjectIdentifierDC
    
public static  HashtableDefaultLookUp
     look up table translating common symbols into their OIDS.
public static  booleanDefaultReverse
     determines whether or not strings should be processed and printed from back to front.
public static  HashtableDefaultSymbols
    
final public static  DERObjectIdentifierE
    
final public static  DERObjectIdentifierEmailAddress
     Email address (RSA PKCS#9 extension) - IA5String.
final public static  DERObjectIdentifierGENERATION
    
final public static  DERObjectIdentifierGIVENNAME
    
final public static  DERObjectIdentifierINITIALS
    
final public static  DERObjectIdentifierL
    
final public static  DERObjectIdentifierO
    
public static  HashtableOIDLookUp
    
final public static  DERObjectIdentifierOU
    
public static  HashtableRFC2253Symbols
    
final public static  DERObjectIdentifierSN
    
final public static  DERObjectIdentifierST
    
final public static  DERObjectIdentifierSURNAME
    
public static  HashtableSymbolLookUp
    
final public static  DERObjectIdentifierT
    
final public static  DERObjectIdentifierUID
     LDAP User id.
final public static  DERObjectIdentifierUNIQUE_IDENTIFIER
    
final public static  DERObjectIdentifierUnstructuredAddress
    
final public static  DERObjectIdentifierUnstructuredName
    

Constructor Summary
public  X509Name(ASN1Sequence seq)
     Constructor from ASN1Sequence the principal will be a list of constructed sets, each containing an (OID, String) pair.
public  X509Name(Hashtable attributes)
     constructor from a table of attributes.
public  X509Name(Vector ordering, Hashtable attributes)
     Constructor from a table of attributes with ordering.

it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process.

public  X509Name(Vector ordering, Hashtable attributes, X509DefaultEntryConverter converter)
     Constructor from a table of attributes with ordering.

it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process.

public  X509Name(Vector oids, Vector values)
     Takes two vectors one of the oids and the other of the values.
public  X509Name(Vector oids, Vector values, X509NameEntryConverter converter)
     Takes two vectors one of the oids and the other of the values.
public  X509Name(String dirName)
     Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes.
public  X509Name(String dirName, X509NameEntryConverter converter)
     Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes with each string value being converted to its associated ASN.1 type using the passed in converter.
public  X509Name(boolean reverse, String dirName)
     Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes.
public  X509Name(boolean reverse, String dirName, X509NameEntryConverter converter)
     Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes with each string value being converted to its associated ASN.1 type using the passed in converter.
public  X509Name(boolean reverse, Hashtable lookUp, String dirName)
     Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes.
public  X509Name(boolean reverse, Hashtable lookUp, String dirName, X509NameEntryConverter converter)
     Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes.

Method Summary
public  booleanequals(Object _obj, boolean inOrder)
    
public  booleanequals(Object _obj)
     test for equality - note: case is ignored.
public static  X509NamegetInstance(ASN1TaggedObject obj, boolean explicit)
     Return a X509Name based on the passed in tagged object.
Parameters:
  obj - tag object holding name.
Parameters:
  explicit - true if explicitly tagged false otherwise.
public static  X509NamegetInstance(Object obj)
    
public  VectorgetOIDs()
     return a vector of the oids in the name, in the order they were found.
public  VectorgetValues()
     return a vector of the values found in the name, in the order they were found.
public  inthashCode()
    
public  DERObjecttoASN1Object()
    
public  StringtoString(boolean reverse, Hashtable oidSymbols)
     convert the structure to a string - if reverse is true the oids and values are listed out starting with the last element in the sequence (ala RFC 2253), otherwise the string will begin with the first element of the structure.
public  StringtoString()
    

Field Detail
C
final public static DERObjectIdentifier C(Code)
country code - StringType(SIZE(2))



CN
final public static DERObjectIdentifier CN(Code)
common name - StringType(SIZE(1..64))



DC
final public static DERObjectIdentifier DC(Code)



DefaultLookUp
public static Hashtable DefaultLookUp(Code)
look up table translating common symbols into their OIDS.



DefaultReverse
public static boolean DefaultReverse(Code)
determines whether or not strings should be processed and printed from back to front.



DefaultSymbols
public static Hashtable DefaultSymbols(Code)
default look up table translating OID values into their common symbols following the convention in RFC 2253 with a few extras



E
final public static DERObjectIdentifier E(Code)
email address in Verisign certificates



EmailAddress
final public static DERObjectIdentifier EmailAddress(Code)
Email address (RSA PKCS#9 extension) - IA5String.

Note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here.




GENERATION
final public static DERObjectIdentifier GENERATION(Code)



GIVENNAME
final public static DERObjectIdentifier GIVENNAME(Code)



INITIALS
final public static DERObjectIdentifier INITIALS(Code)



L
final public static DERObjectIdentifier L(Code)
locality name - StringType(SIZE(1..64))



O
final public static DERObjectIdentifier O(Code)
organization - StringType(SIZE(1..64))



OIDLookUp
public static Hashtable OIDLookUp(Code)
look up table translating OID values into their common symbols - this static is scheduled for deletion



OU
final public static DERObjectIdentifier OU(Code)
organizational unit name - StringType(SIZE(1..64))



RFC2253Symbols
public static Hashtable RFC2253Symbols(Code)
look up table translating OID values into their common symbols following the convention in RFC 2253 with a few extras



SN
final public static DERObjectIdentifier SN(Code)
device serial number name - StringType(SIZE(1..64))



ST
final public static DERObjectIdentifier ST(Code)
state, or province name - StringType(SIZE(1..64))



SURNAME
final public static DERObjectIdentifier SURNAME(Code)
Naming attributes of type X520name



SymbolLookUp
public static Hashtable SymbolLookUp(Code)
look up table translating string values into their OIDS - this static is scheduled for deletion



T
final public static DERObjectIdentifier T(Code)
Title



UID
final public static DERObjectIdentifier UID(Code)
LDAP User id.



UNIQUE_IDENTIFIER
final public static DERObjectIdentifier UNIQUE_IDENTIFIER(Code)



UnstructuredAddress
final public static DERObjectIdentifier UnstructuredAddress(Code)



UnstructuredName
final public static DERObjectIdentifier UnstructuredName(Code)
more from PKCS#9




Constructor Detail
X509Name
public X509Name(ASN1Sequence seq)(Code)
Constructor from ASN1Sequence the principal will be a list of constructed sets, each containing an (OID, String) pair.



X509Name
public X509Name(Hashtable attributes)(Code)
constructor from a table of attributes.

it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process.

Note: if the name you are trying to generate should be following a specific ordering, you should use the constructor with the ordering specified below.




X509Name
public X509Name(Vector ordering, Hashtable attributes)(Code)
Constructor from a table of attributes with ordering.

it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process. The ordering vector should contain the OIDs in the order they are meant to be encoded or printed in toString.




X509Name
public X509Name(Vector ordering, Hashtable attributes, X509DefaultEntryConverter converter)(Code)
Constructor from a table of attributes with ordering.

it's is assumed the table contains OID/String pairs, and the contents of the table are copied into an internal table as part of the construction process. The ordering vector should contain the OIDs in the order they are meant to be encoded or printed in toString.

The passed in converter will be used to convert the strings into their ASN.1 counterparts.




X509Name
public X509Name(Vector oids, Vector values)(Code)
Takes two vectors one of the oids and the other of the values.



X509Name
public X509Name(Vector oids, Vector values, X509NameEntryConverter converter)(Code)
Takes two vectors one of the oids and the other of the values.

The passed in converter will be used to convert the strings into their ASN.1 counterparts.




X509Name
public X509Name(String dirName)(Code)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes.



X509Name
public X509Name(String dirName, X509NameEntryConverter converter)(Code)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes with each string value being converted to its associated ASN.1 type using the passed in converter.



X509Name
public X509Name(boolean reverse, String dirName)(Code)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes. If reverse is true, create the encoded version of the sequence starting from the last element in the string.



X509Name
public X509Name(boolean reverse, String dirName, X509NameEntryConverter converter)(Code)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes with each string value being converted to its associated ASN.1 type using the passed in converter. If reverse is true the ASN.1 sequence representing the DN will be built by starting at the end of the string, rather than the start.



X509Name
public X509Name(boolean reverse, Hashtable lookUp, String dirName)(Code)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes. lookUp should provide a table of lookups, indexed by lowercase only strings and yielding a DERObjectIdentifier, other than that OID. and numeric oids will be processed automatically.
If reverse is true, create the encoded version of the sequence starting from the last element in the string.
Parameters:
  reverse - true if we should start scanning from the end (RFC 2553).
Parameters:
  lookUp - table of names and their oids.
Parameters:
  dirName - the X.500 string to be parsed.



X509Name
public X509Name(boolean reverse, Hashtable lookUp, String dirName, X509NameEntryConverter converter)(Code)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or some such, converting it into an ordered set of name attributes. lookUp should provide a table of lookups, indexed by lowercase only strings and yielding a DERObjectIdentifier, other than that OID. and numeric oids will be processed automatically. The passed in converter is used to convert the string values to the right of each equals sign to their ASN.1 counterparts.

Parameters:
  reverse - true if we should start scanning from the end, false otherwise.
Parameters:
  lookUp - table of names and oids.
Parameters:
  dirName - the string dirName
Parameters:
  converter - the converter to convert string values into their ASN.1 equivalents




Method Detail
equals
public boolean equals(Object _obj, boolean inOrder)(Code)

Parameters:
  inOrder - if true the order of both X509 names must be the same,as well as the values associated with each element.



equals
public boolean equals(Object _obj)(Code)
test for equality - note: case is ignored.



getInstance
public static X509Name getInstance(ASN1TaggedObject obj, boolean explicit)(Code)
Return a X509Name based on the passed in tagged object.
Parameters:
  obj - tag object holding name.
Parameters:
  explicit - true if explicitly tagged false otherwise. the X509Name



getInstance
public static X509Name getInstance(Object obj)(Code)



getOIDs
public Vector getOIDs()(Code)
return a vector of the oids in the name, in the order they were found.



getValues
public Vector getValues()(Code)
return a vector of the values found in the name, in the order they were found.



hashCode
public int hashCode()(Code)



toASN1Object
public DERObject toASN1Object()(Code)



toString
public String toString(boolean reverse, Hashtable oidSymbols)(Code)
convert the structure to a string - if reverse is true the oids and values are listed out starting with the last element in the sequence (ala RFC 2253), otherwise the string will begin with the first element of the structure. If no string definition for the oid is found in oidSymbols the string value of the oid is added. Two standard symbol tables are provided DefaultSymbols, and RFC2253Symbols as part of this class.
Parameters:
  reverse - if true start at the end of the sequence and work back.
Parameters:
  oidSymbols - look up table strings for oids.



toString
public String toString()(Code)



Methods inherited from org.apache.geronimo.crypto.asn1.ASN1Encodable
public boolean equals(Object o)(Code)(Java Doc)
public DERObject getDERObject()(Code)(Java Doc)
public byte[] getEncoded() throws IOException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
abstract public DERObject toASN1Object()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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