org.mozilla.jss.pkix.cms
public class SignerIdentifier extends Object implements ASN1Value
SignerIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, subjectKeyIdentifier [0] SubjectKeyIdentifier }
Nested Class Summary | |
---|---|
static class | SignerIdentifier.Template
A Template for decoding a SignerIdentifier. |
static class | SignerIdentifier.Type
The type of SignerIdentifier. |
Field Summary | |
---|---|
static SignerIdentifier.Type | ISSUER_AND_SERIALNUMBER |
static SignerIdentifier.Type | SUBJECT_KEY_IDENTIFIER |
Constructor Summary | |
---|---|
SignerIdentifier(SignerIdentifier.Type type, IssuerAndSerialNumber issuerAndSerialNumber, OCTET_STRING subjectKeyIdentifier) |
Method Summary | |
---|---|
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(OutputStream ostream) |
void | encode(Tag implicitTag, OutputStream ostream) |
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() |
static SignerIdentifier.Template | getTemplate() |
SignerIdentifier.Type | getType()
Returns the type of SignerIdentifier:
|
ISSUER_AND_SERIALNUMBER
SUBJECT_KEY_IDENTIFIER