diff options
Diffstat (limited to 'src/main/java/org/bouncycastle/asn1/x500/style/RFC4519Style.java')
-rw-r--r-- | src/main/java/org/bouncycastle/asn1/x500/style/RFC4519Style.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bouncycastle/asn1/x500/style/RFC4519Style.java b/src/main/java/org/bouncycastle/asn1/x500/style/RFC4519Style.java index 430d3794..84869895 100644 --- a/src/main/java/org/bouncycastle/asn1/x500/style/RFC4519Style.java +++ b/src/main/java/org/bouncycastle/asn1/x500/style/RFC4519Style.java @@ -204,6 +204,16 @@ public class RFC4519Style return new DERUTF8String(value); } + public String oidToDisplayName(ASN1ObjectIdentifier oid) + { + return (String)DefaultSymbols.get(oid); + } + + public String[] oidToAttrNames(ASN1ObjectIdentifier oid) + { + return IETFUtils.findAttrNamesForOID(oid, DefaultLookUp); + } + public ASN1ObjectIdentifier attrNameToOID(String attrName) { return IETFUtils.decodeAttrName(attrName, DefaultLookUp); |