Additional top-level class in compilation unit: AVAKeyword.
AVAs are components of X.500 relative names. Think of them as being individual fields of a database record. The attribute ID is how you identify the field, and the value is part of a particular record.
Note that instances of this class are immutable.
X500Name
, RDN
Modifier and Type | Field and Description |
---|---|
private static final Debug | |
pack-priv static final int | DEFAULT
DEFAULT format allows both RFC1779 and RFC2253 syntax and additional keywords. |
private static final String | |
pack-priv final ObjectIdentifier | |
private static final boolean | |
pack-priv static final int | RFC1779
RFC1779 specifies format according to RFC1779. |
pack-priv static final int | RFC2253
RFC2253 specifies format according to RFC2253. |
private static final String | |
private static final String | |
private static final String | |
pack-priv final DerValue |
Access | Constructor and Description |
---|---|
public | |
pack-priv | |
pack-priv | |
pack-priv | |
pack-priv | AVA(Reader
Reader containing AVA String in, int parsing format format, Map<String, String> a Map where a keyword String maps to a corresponding
OID String. Each AVA keyword will be mapped to the corresponding OID.
If an entry does not exist, it will fall back to the builtin
keyword/OID mapping. keywordMap)Parse an AVA string formatted according to format. |
pack-priv | |
pack-priv |
Modifier and Type | Method and Description |
---|---|
public void | encode(DerOutputStream
the output stream on which to write the DER encoding. out)Implements sun. DER encode this object onto an output stream. |
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
public DerValue | |
private static Byte | |
private static String | |
public ObjectIdentifier | |
public String | |
public int | Returns: a hashcode for this AVAOverrides java. Returns a hashcode for this AVA. |
pack-priv boolean | |
private static boolean | |
private static boolean | |
private static DerValue | |
private DerValue | |
private DerValue | |
private static int | |
private String | |
private String | |
public String | toRFC1779String()
Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. |
public String | toRFC1779String(Map<String, String> oidMap)
Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. |
public String | |
public String | toRFC2253String()
Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions. |
public String | toRFC2253String(Map<String, String> oidMap)
Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions. |
public String | toString()
Overrides java. Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. |
private static boolean |
debug | back to summary |
---|---|
private static final Debug debug |
DEFAULT | back to summary |
---|---|
pack-priv static final int DEFAULT DEFAULT format allows both RFC1779 and RFC2253 syntax and additional keywords. |
escapedDefault | back to summary |
---|---|
private static final String escapedDefault |
oid | back to summary |
---|---|
pack-priv final ObjectIdentifier oid |
PRESERVE_OLD_DC_ENCODING | back to summary |
---|---|
private static final boolean PRESERVE_OLD_DC_ENCODING |
RFC1779 | back to summary |
---|---|
pack-priv static final int RFC1779 RFC1779 specifies format according to RFC1779. |
RFC2253 | back to summary |
---|---|
pack-priv static final int RFC2253 RFC2253 specifies format according to RFC2253. |
specialChars1779 | back to summary |
---|---|
private static final String specialChars1779 |
specialChars2253 | back to summary |
---|---|
private static final String specialChars2253 |
specialCharsDefault | back to summary |
---|---|
private static final String specialCharsDefault |
value | back to summary |
---|---|
pack-priv final DerValue value |
AVA | back to summary |
---|---|
public AVA(ObjectIdentifier type, DerValue val) |
AVA | back to summary |
---|---|
pack-priv AVA(Reader in) throws IOException Parse an RFC 1779, 2253 or 4514 style AVA string: CN=fee fie foe fum or perhaps with quotes. Not all defined AVA tags are supported; of current note are X.400 related ones (PRMD, ADMD, etc.). This terminates at unescaped AVA separators ("+") or RDN separators (",", ";"), and removes cosmetic whitespace at the end of values. |
AVA | back to summary |
---|---|
pack-priv AVA(Reader in, Map<String, String> keywordMap) throws IOException Parse an RFC 1779, 2253 or 4514 style AVA string: CN=fee fie foe fum or perhaps with quotes. Additional keywords can be specified in the keyword/OID map. This terminates at unescaped AVA separators ("+") or RDN separators (",", ";"), and removes cosmetic whitespace at the end of values. |
AVA | back to summary |
---|---|
pack-priv AVA(Reader in, int format) throws IOException Parse an AVA string formatted according to format. |
AVA | back to summary |
---|---|
pack-priv AVA(Reader in, int format, Map<String, String> keywordMap) throws IOException Parse an AVA string formatted according to format.
|
AVA | back to summary |
---|---|
pack-priv AVA(DerValue derval) throws IOException |
AVA | back to summary |
---|---|
pack-priv AVA(DerInputStream in) throws IOException |
encode | back to summary |
---|---|
public void encode(DerOutputStream out) Implements sun. DER encode this object onto an output stream.
Implements the
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
getDerValue | back to summary |
---|---|
public DerValue getDerValue() Get the value of this AVA as a DerValue. |
getEmbeddedHexPair | back to summary |
---|---|
private static Byte getEmbeddedHexPair(int c1, Reader in) throws IOException |
getEmbeddedHexString | back to summary |
---|---|
private static String getEmbeddedHexString(List<Byte> hexList) |
getObjectIdentifier | back to summary |
---|---|
public ObjectIdentifier getObjectIdentifier() Get the ObjectIdentifier of this AVA. |
getValueString | back to summary |
---|---|
public String getValueString() Get the value of this AVA as a String.
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Returns a hashcode for this AVA.
|
hasRFC2253Keyword | back to summary |
---|---|
pack-priv boolean hasRFC2253Keyword() |
isDerString | back to summary |
---|---|
private static boolean isDerString(DerValue value, boolean canonical) |
isTerminator | back to summary |
---|---|
private static boolean isTerminator(int ch, int format) |
parseHexString | back to summary |
---|---|
private static DerValue parseHexString(Reader in, int format) throws IOException |
parseQuotedString | back to summary |
---|---|
private DerValue parseQuotedString(Reader in, StringBuilder temp) throws IOException |
parseString | back to summary |
---|---|
private DerValue parseString(Reader in, int c, int format, StringBuilder temp) throws IOException |
readChar | back to summary |
---|---|
private static int readChar(Reader in, String errMsg) throws IOException |
toKeyword | back to summary |
---|---|
private String toKeyword(int format, Map<String, String> oidMap) |
toKeywordValueString | back to summary |
---|---|
private String toKeywordValueString(String keyword) |
toRFC1779String | back to summary |
---|---|
public String toRFC1779String() Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. It only emits standardised keywords. |
toRFC1779String | back to summary |
---|---|
public String toRFC1779String(Map<String, String> oidMap) Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. It emits standardised keywords, as well as keywords contained in the OID/keyword map. |
toRFC2253CanonicalString | back to summary |
---|---|
public String toRFC2253CanonicalString() |
toRFC2253String | back to summary |
---|---|
public String toRFC2253String() Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions. It only emits standardised keywords. |
toRFC2253String | back to summary |
---|---|
public String toRFC2253String(Map<String, String> oidMap) Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions. It emits standardised keywords, as well as keywords contained in the OID/keyword map. |
toString | back to summary |
---|---|
public String toString() Overrides java. Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions.
|
trailingSpace | back to summary |
---|---|
private static boolean trailingSpace(Reader in) throws IOException |