Modifier and Type | Class and Description |
---|---|
static class |
AlgorithmIdentifier.Template |
Constructor and Description |
---|
AlgorithmIdentifier(OBJECT_IDENTIFIER oid)
Creates an AlgorithmIdentifier with no parameter.
|
AlgorithmIdentifier(OBJECT_IDENTIFIER oid,
ASN1Value parameters)
Creates an AlgorithmIdentifier.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicit,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
OBJECT_IDENTIFIER |
getOID() |
ASN1Value |
getParameters()
If this instance was constructed, returns the
parameter passed in to the constructer.
|
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static AlgorithmIdentifier.Template |
getTemplate() |
public static final Tag TAG
public AlgorithmIdentifier(OBJECT_IDENTIFIER oid)
public AlgorithmIdentifier(OBJECT_IDENTIFIER oid, ASN1Value parameters)
parameters
- The algorithm parameters. A value of null
will be encoded with an ASN.1 NULL
.public Tag getTag()
ASN1Value
public OBJECT_IDENTIFIER getOID()
public ASN1Value getParameters()
public static AlgorithmIdentifier.Template getTemplate()
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value