Home » geronimo-2.2-source-release » org.apache.geronimo.crypto.jce » [javadoc | source]
org.apache.geronimo.crypto.jce
public class: X509Principal [javadoc | source]
java.lang.Object
   org.apache.geronimo.crypto.asn1.ASN1Encodable
      org.apache.geronimo.crypto.asn1.x509.X509Name
         org.apache.geronimo.crypto.jce.X509Principal

All Implemented Interfaces:
    Principal, DEREncodable

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Fields inherited from org.apache.geronimo.crypto.asn1.x509.X509Name:
C,  O,  OU,  T,  CN,  SN,  L,  ST,  SURNAME,  GIVENNAME,  INITIALS,  GENERATION,  UNIQUE_IDENTIFIER,  EmailAddress,  UnstructuredName,  UnstructuredAddress,  E,  DC,  UID,  OIDLookUp,  DefaultReverse,  DefaultSymbols,  RFC2253Symbols,  SymbolLookUp,  DefaultLookUp
Constructor:
 public X509Principal(byte[] bytes) throws IOException 
    Constructor from an encoded byte array.
 public X509Principal(X509Name name) 
    Constructor from an X509Name object.
 public X509Principal(Hashtable attributes) 
    constructor from a table of attributes.

    it's is assumed the table contains OID/String pairs.

 public X509Principal(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 X509Principal(Vector ordering,
    Hashtable attributes) 
    constructor from a table of attributes and a vector giving the specific ordering required for encoding or conversion to a string.

    it's is assumed the table contains OID/String pairs.

 public X509Principal(Vector oids,
    Vector values) 
    constructor from a vector of attribute values and a vector of OIDs.
 public X509Principal(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. If reverse is false the dir name will be encoded in the order of the (name, value) pairs presented, otherwise the encoding will start with the last (name, value) pair and work back.
 public X509Principal(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. 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.

Method from org.apache.geronimo.crypto.jce.X509Principal Summary:
getEncoded,   getName
Methods from org.apache.geronimo.crypto.asn1.x509.X509Name:
equals,   equals,   getInstance,   getInstance,   getOIDs,   getValues,   hashCode,   toASN1Object,   toString,   toString
Methods from org.apache.geronimo.crypto.asn1.ASN1Encodable:
equals,   getDERObject,   getEncoded,   hashCode,   toASN1Object
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.crypto.jce.X509Principal Detail:
 public byte[] getEncoded() 
    return a DER encoded byte array representing this object
 public String getName()