| java.lang.Object sun.security.x509.AVA
AVA | public class AVA implements DerEncoder(Code) | | X.500 Attribute-Value-Assertion (AVA): an attribute, as identified by
some attribute ID, has some particular value. Values are as a rule ASN.1
printable strings. A conventional set of type IDs is recognized when
parsing (and generating) RFC 1779 or RFC 2253 syntax strings.
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.
See Also: X500Name See Also: RDN version: 1.35, 10/10/06 author: David Brownell author: Amit Kapoor author: Hemma Prafullchandra |
Field Summary | |
final static int | DEFAULT DEFAULT format allows both RFC1779 and RFC2253 syntax and
additional keywords. | final static int | RFC1779 RFC1779 specifies format according to RFC1779. | final static int | RFC2253 RFC2253 specifies format according to RFC2253. | final ObjectIdentifier | oid | final DerValue | value |
DEFAULT | final static int DEFAULT(Code) | | DEFAULT format allows both RFC1779 and RFC2253 syntax and
additional keywords.
|
RFC1779 | final static int RFC1779(Code) | | RFC1779 specifies format according to RFC1779.
|
RFC2253 | final static int RFC2253(Code) | | RFC2253 specifies format according to RFC2253.
|
AVA | AVA(Reader in) throws IOException(Code) | | Parse an RFC 1779 or RFC 2253 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 (",", ";"), or DN terminators (">"), and removes
cosmetic whitespace at the end of values.
|
AVA | AVA(Reader in, int format) throws IOException(Code) | | Parse an AVA string formatted according to format.
NOTE: format RFC1779 should only allow RFC1779 syntax but is
actually DEFAULT with RFC1779 keywords.
|
derEncode | public void derEncode(OutputStream out) throws IOException(Code) | | DER encode this object onto an output stream.
Implements the DerEncoder interface.
Parameters: out - the output stream on which to write the DER encoding. exception: IOException - on encoding error. |
getDerValue | public DerValue getDerValue()(Code) | | Get the value of this AVA as a DerValue.
|
getValueString | public String getValueString()(Code) | | Get the value of this AVA as a String.
exception: RuntimeException - if we could not obtain the string form(should not occur) |
hasRFC2253Keyword | boolean hasRFC2253Keyword()(Code) | | |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this AVA.
a hashcode for this AVA. |
toRFC1779String | public String toRFC1779String()(Code) | | Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions. It only
emits standardised keywords.
|
toRFC2253CanonicalString | public String toRFC2253CanonicalString()(Code) | | |
toRFC2253String | public String toRFC2253String()(Code) | | Returns a printable form of this attribute, using RFC 2253
syntax for individual attribute/value assertions. It only
emits standardised keywords.
|
toString | public String toString()(Code) | | Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
|
|
|