APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

pack-priv Class AVAKeyword

Located in compilation unit of sun.security.x509.AVA.

extends Object
Class Inheritance

Helper class that allows conversion from String to ObjectIdentifier and vice versa according to RFC1779, RFC2253, and an augmented version of those standards.

Field Summary

Modifier and TypeField and Description
private final String
private static final Map<String, AVAKeyword>
private final ObjectIdentifier
private static final Map<ObjectIdentifier, AVAKeyword>
private final boolean
private final boolean

Constructor Summary

AccessConstructor and Description
private
AVAKeyword(String keyword, ObjectIdentifier oid, boolean rfc1779Compliant, boolean rfc2253Compliant)

Method Summary

Modifier and TypeMethod and Description
pack-priv static String
getKeyword(ObjectIdentifier oid, int standard)

Get a keyword for the given ObjectIdentifier according to standard.

pack-priv static String
getKeyword(ObjectIdentifier oid, int standard, Map<String, String> extraOidMap)

Get a keyword for the given ObjectIdentifier according to standard.

pack-priv static ObjectIdentifier
getOID(String keyword, int standard, Map<String, String> extraKeywordMap)

Get an object identifier representing the specified keyword (or string encoded object identifier) in the given standard.

pack-priv static boolean
hasKeyword(ObjectIdentifier oid, int standard)

Test if oid has an associated keyword in standard.

private boolean
isCompliant(int standard)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keywordback to summary
private final String keyword
keywordMapback to summary
private static final Map<String, AVAKeyword> keywordMap
oidback to summary
private final ObjectIdentifier oid
oidMapback to summary
private static final Map<ObjectIdentifier, AVAKeyword> oidMap
rfc1779Compliantback to summary
private final boolean rfc1779Compliant
rfc2253Compliantback to summary
private final boolean rfc2253Compliant

Constructor Detail

AVAKeywordback to summary
private AVAKeyword(String keyword, ObjectIdentifier oid, boolean rfc1779Compliant, boolean rfc2253Compliant)

Method Detail

getKeywordback to summary
pack-priv static String getKeyword(ObjectIdentifier oid, int standard)

Get a keyword for the given ObjectIdentifier according to standard. If no keyword is available, the ObjectIdentifier is encoded as a String.

getKeywordback to summary
pack-priv static String getKeyword(ObjectIdentifier oid, int standard, Map<String, String> extraOidMap)

Get a keyword for the given ObjectIdentifier according to standard. Checks the extraOidMap for a keyword first, then falls back to the builtin/default set. If no keyword is available, the ObjectIdentifier is encoded as a String.

getOIDback to summary
pack-priv static ObjectIdentifier getOID(String keyword, int standard, Map<String, String> extraKeywordMap) throws IOException

Get an object identifier representing the specified keyword (or string encoded object identifier) in the given standard.

Exceptions
IOException:
If the keyword is not valid in the specified standard or the OID String to which a keyword maps to is improperly formatted.
hasKeywordback to summary
pack-priv static boolean hasKeyword(ObjectIdentifier oid, int standard)

Test if oid has an associated keyword in standard.

isCompliantback to summary
private boolean isCompliant(int standard)