Modifier and Type | Class and Description |
---|---|
static class |
SignerIdentifier.Template
A Template for decoding a SignerIdentifier.
|
static class |
SignerIdentifier.Type
The type of SignerIdentifier.
|
Modifier and Type | Field and Description |
---|---|
static SignerIdentifier.Type |
ISSUER_AND_SERIALNUMBER |
static SignerIdentifier.Type |
SUBJECT_KEY_IDENTIFIER |
Constructor and Description |
---|
SignerIdentifier(SignerIdentifier.Type type,
IssuerAndSerialNumber issuerAndSerialNumber,
OCTET_STRING subjectKeyIdentifier) |
Modifier and Type | Method and Description |
---|---|
static SignerIdentifier |
createIssuerAndSerialNumber(IssuerAndSerialNumber ias)
Creates a new SignerIdentifier with the given IssuerAndSerialNumber field.
|
static SignerIdentifier |
createSubjectKeyIdentifier(OCTET_STRING ski)
Creates a new SignerIdentifier with the given SubjectKeyIdentifier field.
|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
an implicit tag.
|
IssuerAndSerialNumber |
getIssuerAndSerialNumber()
If type == ISSUER_AND_SERIALNUMBER, returns the IssuerAndSerialNumber
field.
|
OCTET_STRING |
getSubjectKeyIdentifier()
If type == SUBJECT_KEY_IDENTIFIER, returns the SubjectKeyIdentifier
field.
|
Tag |
getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static SignerIdentifier.Template |
getTemplate() |
SignerIdentifier.Type |
getType()
Returns the type of SignerIdentifier:
ISSUER_AND_SERIALNUMBER
SUBJECT_KEY_IDENTIFIER
|
public static SignerIdentifier.Type ISSUER_AND_SERIALNUMBER
public static SignerIdentifier.Type SUBJECT_KEY_IDENTIFIER
public SignerIdentifier(SignerIdentifier.Type type, IssuerAndSerialNumber issuerAndSerialNumber, OCTET_STRING subjectKeyIdentifier)
public SignerIdentifier.Type getType()
ISSUER_AND_SERIALNUMBER
SUBJECT_KEY_IDENTIFIER
public IssuerAndSerialNumber getIssuerAndSerialNumber()
public OCTET_STRING getSubjectKeyIdentifier()
public static SignerIdentifier createIssuerAndSerialNumber(IssuerAndSerialNumber ias)
public static SignerIdentifier createSubjectKeyIdentifier(OCTET_STRING ski)
public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
ASN1Value
public static SignerIdentifier.Template getTemplate()