public class BCStrictStyle extends BCStyle
| Modifier and Type | Field and Description |
|---|---|
static X500NameStyle |
INSTANCE |
BUSINESS_CATEGORY, C, CN, COUNTRY_OF_CITIZENSHIP, COUNTRY_OF_RESIDENCE, DATE_OF_BIRTH, DC, defaultLookUp, defaultSymbols, DESCRIPTION, DMD_NAME, DN_QUALIFIER, E, EmailAddress, GENDER, GENERATION, GIVENNAME, INITIALS, JURISDICTION_C, JURISDICTION_L, JURISDICTION_ST, L, NAME, NAME_AT_BIRTH, O, ORGANIZATION_IDENTIFIER, OU, PLACE_OF_BIRTH, POSTAL_ADDRESS, POSTAL_CODE, PSEUDONYM, ROLE, SERIALNUMBER, SN, ST, STREET, SURNAME, T, TELEPHONE_NUMBER, UID, UNIQUE_IDENTIFIER, UnstructuredAddress, UnstructuredName| Constructor and Description |
|---|
BCStrictStyle() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(X500Name name1,
X500Name name2)
Two names are equal when they carry the same multiset of RDNs, each RDN compared by
AbstractX500NameStyle.rdnAreEqual(RDN, RDN). |
attrNameToOID, encodeStringValue, fromString, oidToAttrNames, oidToDisplayName, toStringcalculateHashCode, copyHashTable, rdnAreEqual, stringToValuepublic static final X500NameStyle INSTANCE
public boolean areEqual(X500Name name1, X500Name name2)
AbstractX500NameStyleAbstractX500NameStyle.rdnAreEqual(RDN, RDN). The RDNs are first compared position by position, in the
order they appear or, when the first attribute types differ, in reverse (the usual two
encodings of one name); only when that fails are the two multisets compared, by sorting
the canonical form of every RDN once, so a name reached from untrusted data costs
n log n in its number of RDNs rather than the n squared of a pairwise search. A subclass
that overrides rdnAreEqual is consulted on the positional pass; the multiset pass compares
the canonical forms of IETFUtils.canonicalString(ASN1Encodable).areEqual in interface X500NameStyleareEqual in class AbstractX500NameStylename1 - first name for comparison.name2 - second name for comparison.