Package org.bouncycastle.asn1.x500.style
Class RFC4519Style
- java.lang.Object
-
- org.bouncycastle.asn1.x500.style.AbstractX500NameStyle
-
- org.bouncycastle.asn1.x500.style.RFC4519Style
-
- All Implemented Interfaces:
X500NameStyle
public class RFC4519Style extends AbstractX500NameStyle
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
RFC4519Style()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1ObjectIdentifier
attrNameToOID(java.lang.String attrName)
Return the OID associated with the passed in name.protected ASN1Encodable
encodeStringValue(ASN1ObjectIdentifier oid, java.lang.String value)
Encoded every value into a UTF8String.RDN[]
fromString(java.lang.String dirName)
Return an array of RDN generated from the passed in String.java.lang.String[]
oidToAttrNames(ASN1ObjectIdentifier oid)
Return the acceptable names in a String DN that map to OID.java.lang.String
oidToDisplayName(ASN1ObjectIdentifier oid)
Return the display name for toString() associated with the OID.java.lang.String
toString(X500Name name)
Convert the passed in X500Name to a String.-
Methods inherited from class org.bouncycastle.asn1.x500.style.AbstractX500NameStyle
areEqual, calculateHashCode, copyHashTable, rdnAreEqual, stringToValue
-
-
-
-
Field Detail
-
businessCategory
public static final ASN1ObjectIdentifier businessCategory
-
c
public static final ASN1ObjectIdentifier c
-
cn
public static final ASN1ObjectIdentifier cn
-
dc
public static final ASN1ObjectIdentifier dc
-
description
public static final ASN1ObjectIdentifier description
-
destinationIndicator
public static final ASN1ObjectIdentifier destinationIndicator
-
distinguishedName
public static final ASN1ObjectIdentifier distinguishedName
-
dnQualifier
public static final ASN1ObjectIdentifier dnQualifier
-
enhancedSearchGuide
public static final ASN1ObjectIdentifier enhancedSearchGuide
-
facsimileTelephoneNumber
public static final ASN1ObjectIdentifier facsimileTelephoneNumber
-
generationQualifier
public static final ASN1ObjectIdentifier generationQualifier
-
givenName
public static final ASN1ObjectIdentifier givenName
-
houseIdentifier
public static final ASN1ObjectIdentifier houseIdentifier
-
initials
public static final ASN1ObjectIdentifier initials
-
internationalISDNNumber
public static final ASN1ObjectIdentifier internationalISDNNumber
-
l
public static final ASN1ObjectIdentifier l
-
member
public static final ASN1ObjectIdentifier member
-
name
public static final ASN1ObjectIdentifier name
-
o
public static final ASN1ObjectIdentifier o
-
ou
public static final ASN1ObjectIdentifier ou
-
owner
public static final ASN1ObjectIdentifier owner
-
physicalDeliveryOfficeName
public static final ASN1ObjectIdentifier physicalDeliveryOfficeName
-
postalAddress
public static final ASN1ObjectIdentifier postalAddress
-
postalCode
public static final ASN1ObjectIdentifier postalCode
-
postOfficeBox
public static final ASN1ObjectIdentifier postOfficeBox
-
preferredDeliveryMethod
public static final ASN1ObjectIdentifier preferredDeliveryMethod
-
registeredAddress
public static final ASN1ObjectIdentifier registeredAddress
-
roleOccupant
public static final ASN1ObjectIdentifier roleOccupant
-
searchGuide
public static final ASN1ObjectIdentifier searchGuide
-
seeAlso
public static final ASN1ObjectIdentifier seeAlso
-
serialNumber
public static final ASN1ObjectIdentifier serialNumber
-
sn
public static final ASN1ObjectIdentifier sn
-
st
public static final ASN1ObjectIdentifier st
-
street
public static final ASN1ObjectIdentifier street
-
telephoneNumber
public static final ASN1ObjectIdentifier telephoneNumber
-
teletexTerminalIdentifier
public static final ASN1ObjectIdentifier teletexTerminalIdentifier
-
telexNumber
public static final ASN1ObjectIdentifier telexNumber
-
title
public static final ASN1ObjectIdentifier title
-
uid
public static final ASN1ObjectIdentifier uid
-
uniqueMember
public static final ASN1ObjectIdentifier uniqueMember
-
userPassword
public static final ASN1ObjectIdentifier userPassword
-
x121Address
public static final ASN1ObjectIdentifier x121Address
-
x500UniqueIdentifier
public static final ASN1ObjectIdentifier x500UniqueIdentifier
-
INSTANCE
public static final X500NameStyle INSTANCE
Singleton instance.
-
defaultLookUp
protected final java.util.Hashtable defaultLookUp
-
defaultSymbols
protected final java.util.Hashtable defaultSymbols
-
-
Method Detail
-
encodeStringValue
protected ASN1Encodable encodeStringValue(ASN1ObjectIdentifier oid, java.lang.String value)
Description copied from class:AbstractX500NameStyle
Encoded every value into a UTF8String.Subclasses should overwrite this method to change the encoding of specific types.
- Overrides:
encodeStringValue
in classAbstractX500NameStyle
- Parameters:
oid
- the DN oid of the valuevalue
- the String representation of the value- Returns:
- a the value encoded into a ASN.1 object. Never returns
null
.
-
oidToDisplayName
public java.lang.String oidToDisplayName(ASN1ObjectIdentifier oid)
Description copied from interface:X500NameStyle
Return the display name for toString() associated with the OID.- Parameters:
oid
- the OID of interest.- Returns:
- the name displayed in toString(), null if no mapping provided.
-
oidToAttrNames
public java.lang.String[] oidToAttrNames(ASN1ObjectIdentifier oid)
Description copied from interface:X500NameStyle
Return the acceptable names in a String DN that map to OID.- Parameters:
oid
- the OID of interest.- Returns:
- an array of String aliases for the OID, zero length if there are none.
-
attrNameToOID
public ASN1ObjectIdentifier attrNameToOID(java.lang.String attrName)
Description copied from interface:X500NameStyle
Return the OID associated with the passed in name.- Parameters:
attrName
- the string to match.- Returns:
- an OID
-
fromString
public RDN[] fromString(java.lang.String dirName)
Description copied from interface:X500NameStyle
Return an array of RDN generated from the passed in String.- Parameters:
dirName
- the String representation.- Returns:
- an array of corresponding RDNs.
-
toString
public java.lang.String toString(X500Name name)
Description copied from interface:X500NameStyle
Convert the passed in X500Name to a String.- Parameters:
name
- the name to convert.- Returns:
- a String representation.
-
-