Class BCStyle
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.x500.X500NameStyle
public class BCStyle extends AbstractX500NameStyle
-
-
Field Summary
-
Method Summary
Modifier and Type Method Description String
oidToDisplayName(ASN1ObjectIdentifier oid)
Return the display name for toString() associated with the OID. Array<String>
oidToAttrNames(ASN1ObjectIdentifier oid)
Return the acceptable names in a String DN that map to OID. ASN1ObjectIdentifier
attrNameToOID(String attrName)
Return the OID associated with the passed in name. Array<RDN>
fromString(String dirName)
Return an array of RDN generated from the passed in String. String
toString(X500Name name)
Convert the passed in X500Name to a String. -
-
Method Detail
-
oidToDisplayName
String oidToDisplayName(ASN1ObjectIdentifier oid)
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
Array<String> oidToAttrNames(ASN1ObjectIdentifier oid)
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
ASN1ObjectIdentifier attrNameToOID(String attrName)
Return the OID associated with the passed in name.
- Parameters:
attrName
- the string to match.- Returns:
an OID
-
fromString
Array<RDN> fromString(String dirName)
Return an array of RDN generated from the passed in String.
- Parameters:
dirName
- the String representation.- Returns:
an array of corresponding RDNs.
-
-
-
-