java.lang.Object | |
↳ | sun.security.x509.AVA |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DER encode this object onto an output stream.
| |||||||||||
Indicates whether some other object is "equal to" this one.
| |||||||||||
Get the value of this AVA as a DerValue.
| |||||||||||
Get the ObjectIdentifier of this AVA.
| |||||||||||
Get the value of this AVA as a String.
| |||||||||||
Returns a hashcode for this AVA.
| |||||||||||
Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
| |||||||||||
Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
| |||||||||||
Returns a printable form of this attribute, using RFC 2253
syntax for individual attribute/value assertions.
| |||||||||||
Returns a printable form of this attribute, using RFC 2253
syntax for individual attribute/value assertions.
| |||||||||||
Returns a printable form of this attribute, using RFC 1779
syntax for individual attribute/value assertions.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
DER encode this object onto an output stream.
Implements the DerEncoder
interface.
out | the output stream on which to write the DER encoding. |
---|
IOException | on encoding error. |
---|
Indicates whether some other object is "equal to" this one.
The equals
method implements an equivalence relation
on non-null object references:
x
, x.equals(x)
should return
true
.
x
and y
, x.equals(y)
should return true
if and only if
y.equals(x)
returns true
.
x
, y
, and z
, if
x.equals(y)
returns true
and
y.equals(z)
returns true
, then
x.equals(z)
should return true
.
x
and y
, multiple invocations of
x.equals(y) consistently return true
or consistently return false
, provided no
information used in equals
comparisons on the
objects is modified.
x
,
x.equals(null)
should return false
.
The equals method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x
and
y
, this method returns true
if and only
if x
and y
refer to the same object
(x == y
has the value true
).
Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
obj | the reference object with which to compare. |
---|
true
if this object is the same as the obj
argument; false
otherwise.Get the value of this AVA as a String.
RuntimeException | if we could not obtain the string form (should not occur) |
---|
Returns a hashcode for this AVA.
Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions. It only emits standardised keywords.
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.
Returns a printable form of this attribute, using RFC 2253 syntax for individual attribute/value assertions. It only emits standardised keywords.
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.
Returns a printable form of this attribute, using RFC 1779 syntax for individual attribute/value assertions.