Package org.bouncycastle.asn1.x500.style
Class BCStrictStyle
java.lang.Object
org.bouncycastle.asn1.x500.style.BCStyle
org.bouncycastle.asn1.x500.style.BCStrictStyle
- All Implemented Interfaces:
X500NameStyle
public class BCStrictStyle extends BCStyle
Variation of BCStyle that insists on strict ordering for equality
and hashCode comparisons
-
Field Summary
Fields Modifier and Type Field Description static X500NameStyleINSTANCEFields inherited from class org.bouncycastle.asn1.x500.style.BCStyle
BUSINESS_CATEGORY, C, CN, COUNTRY_OF_CITIZENSHIP, COUNTRY_OF_RESIDENCE, DATE_OF_BIRTH, DC, DMD_NAME, DN_QUALIFIER, E, EmailAddress, GENDER, GENERATION, GIVENNAME, INITIALS, L, NAME, NAME_AT_BIRTH, O, OU, PLACE_OF_BIRTH, POSTAL_ADDRESS, POSTAL_CODE, PSEUDONYM, SERIALNUMBER, SN, ST, STREET, SURNAME, T, TELEPHONE_NUMBER, UID, UNIQUE_IDENTIFIER, UnstructuredAddress, UnstructuredName -
Constructor Summary
Constructors Constructor Description BCStrictStyle() -
Method Summary
Methods inherited from class org.bouncycastle.asn1.x500.style.BCStyle
attrNameToOID, calculateHashCode, fromString, oidToAttrNames, oidToDisplayName, rdnAreEqual, stringToValue, toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
BCStrictStyle
public BCStrictStyle()
-
-
Method Details
-
areEqual
Description copied from interface:X500NameStyleReturn true if the two names are equal.- Specified by:
areEqualin interfaceX500NameStyle- Overrides:
areEqualin classBCStyle- Parameters:
name1- first name for comparison.name2- second name for comparison.- Returns:
- true if name1 = name 2, false otherwise.
-