Package org.bouncycastle.asn1.x500.style
Class RFC4519Style
java.lang.Object
org.bouncycastle.asn1.x500.style.RFC4519Style
- All Implemented Interfaces:
X500NameStyle
public class RFC4519Style extends Object implements X500NameStyle
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedRFC4519Style() -
Method Summary
Modifier and Type Method Description booleanareEqual(X500Name name1, X500Name name2)Return true if the two names are equal.ASN1ObjectIdentifierattrNameToOID(String attrName)Return the OID associated with the passed in name.intcalculateHashCode(X500Name name)Calculate a hashCode for the passed in name.RDN[]fromString(String dirName)Return an array of RDN generated from the passed in String.String[]oidToAttrNames(ASN1ObjectIdentifier oid)Return the acceptable names in a String DN that map to OID.StringoidToDisplayName(ASN1ObjectIdentifier oid)Return the display name for toString() associated with the OID.protected booleanrdnAreEqual(RDN rdn1, RDN rdn2)ASN1EncodablestringToValue(ASN1ObjectIdentifier oid, String value)Convert the passed in String value into the appropriate ASN.1 encoded object.StringtoString(X500Name name)Convert the passed in X500Name to a String.
-
Field Details
-
INSTANCE
-
businessCategory
-
c
-
cn
-
dc
-
description
-
destinationIndicator
-
distinguishedName
-
dnQualifier
-
enhancedSearchGuide
-
facsimileTelephoneNumber
-
generationQualifier
-
givenName
-
houseIdentifier
-
initials
-
internationalISDNNumber
-
l
-
member
-
name
-
o
-
ou
-
owner
-
physicalDeliveryOfficeName
-
postalAddress
-
postalCode
-
postOfficeBox
-
preferredDeliveryMethod
-
registeredAddress
-
roleOccupant
-
searchGuide
-
seeAlso
-
serialNumber
-
sn
-
st
-
street
-
telephoneNumber
-
teletexTerminalIdentifier
-
telexNumber
-
title
-
uid
-
uniqueMember
-
userPassword
-
x121Address
-
x500UniqueIdentifier
-
-
Constructor Details
-
RFC4519Style
protected RFC4519Style()
-
-
Method Details
-
stringToValue
Description copied from interface:X500NameStyleConvert the passed in String value into the appropriate ASN.1 encoded object.- Specified by:
stringToValuein interfaceX500NameStyle- Parameters:
oid- the OID associated with the value in the DN.value- the value of the particular DN component.- Returns:
- the ASN.1 equivalent for the value.
-
oidToDisplayName
Description copied from interface:X500NameStyleReturn the display name for toString() associated with the OID.- Specified by:
oidToDisplayNamein interfaceX500NameStyle- Parameters:
oid- the OID of interest.- Returns:
- the name displayed in toString(), null if no mapping provided.
-
oidToAttrNames
Description copied from interface:X500NameStyleReturn the acceptable names in a String DN that map to OID.- Specified by:
oidToAttrNamesin interfaceX500NameStyle- Parameters:
oid- the OID of interest.- Returns:
- an array of String aliases for the OID, zero length if there are none.
-
attrNameToOID
Description copied from interface:X500NameStyleReturn the OID associated with the passed in name.- Specified by:
attrNameToOIDin interfaceX500NameStyle- Parameters:
attrName- the string to match.- Returns:
- an OID
-
areEqual
Description copied from interface:X500NameStyleReturn true if the two names are equal.- Specified by:
areEqualin interfaceX500NameStyle- Parameters:
name1- first name for comparison.name2- second name for comparison.- Returns:
- true if name1 = name 2, false otherwise.
-
rdnAreEqual
-
fromString
Description copied from interface:X500NameStyleReturn an array of RDN generated from the passed in String.- Specified by:
fromStringin interfaceX500NameStyle- Parameters:
dirName- the String representation.- Returns:
- an array of corresponding RDNs.
-
calculateHashCode
Description copied from interface:X500NameStyleCalculate a hashCode for the passed in name.- Specified by:
calculateHashCodein interfaceX500NameStyle- Parameters:
name- the name the hashCode is required for.- Returns:
- the calculated hashCode.
-
toString
Description copied from interface:X500NameStyleConvert the passed in X500Name to a String.- Specified by:
toStringin interfaceX500NameStyle- Parameters:
name- the name to convert.- Returns:
- a String representation.
-