org.mozilla.jss.pkix.primitive
Class RDN
java.lang.Object
org.mozilla.jss.pkix.primitive.RDN
- ASN1Value
public class RDN
extends java.lang.Object
A RelativeDistinguishedName, whose ASN.1 is:
RelativeDistinguishedName ::= SET SIZE(1..MAX) OF AttributeValueAssertion
RDN(AVA initialElement) - An RDN must have at least one element at all times, so an initial
element must be provided.
|
void | add(AVA ava)
|
AVA | at(int idx)
|
void | encode(OutputStream ostream) - Write this value's DER encoding to an output stream using
its own base tag.
|
void | encode(Tag implicit, OutputStream ostream) - Write this value's DER encoding to an output stream using
an implicit tag.
|
Tag | getTag() - Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
void | removeAt(int idx)
|
int | size()
|
TAG
public static final Tag TAG
RDN
public RDN(AVA initialElement)
An RDN must have at least one element at all times, so an initial
element must be provided.
add
public void add(AVA ava)
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicit,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value