public abstract class TrustedAuthority extends Object implements ASN1Encodable
Modifier and Type | Class and Description |
---|---|
static class |
TrustedAuthority.CertificateTrustedAuthority
A trusted authority that is identified by its certificate.
|
static class |
TrustedAuthority.HashTrustedAuthority
A trusted authority that is identified by a hash.
|
static class |
TrustedAuthority.IssuerKeyHashTrustedAuthority
A trusted authority that is identified by the hash of its public key.
|
static class |
TrustedAuthority.IssuerNameHashTrustedAuthority
A trusted authority that is identified by the hash of its name.
|
static class |
TrustedAuthority.NameTrustedAuthority
A trusted authority that is identified by its name.
|
static class |
TrustedAuthority.PKCS15KeyHashTrustedAuthority
A trusted authority that is identified by the PKCS #15 key hash.
|
Modifier and Type | Field and Description |
---|---|
static int |
AUTHORITY_CERTIFICATE |
static int |
AUTHORITY_NAME |
static int |
ISSUER_KEY_HASH |
static int |
ISSUER_NAME_HASH |
static int |
PKCS_15_KEY_HASH |
Modifier and Type | Method and Description |
---|---|
abstract void |
encodeTo(ASN1Encoder encoder)
Encode this
TrustedAuth element using the given trusted authority and DER encoder,
where TrustedAuth is defined as: |
abstract Object |
getIdentifier()
Get the identifier for this trusted authority.
|
int |
getType()
Get the type of this trusted authority.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ofBMPString, ofEncodedBytes, ofIA5String, ofInteger, ofInteger, ofOid, ofPrintableString, ofUniversalString, ofUtf8String
public static final int AUTHORITY_NAME
public static final int ISSUER_NAME_HASH
public static final int ISSUER_KEY_HASH
public static final int AUTHORITY_CERTIFICATE
public static final int PKCS_15_KEY_HASH
public int getType()
public abstract Object getIdentifier()
public abstract void encodeTo(ASN1Encoder encoder) throws ASN1Exception
Encode this TrustedAuth
element using the given trusted authority and DER encoder,
where TrustedAuth
is defined as:
TrustedAuth ::= CHOICE { authorityName [0] Name, -- SubjectName from CA certificate issuerNameHash [1] OCTET STRING, -- SHA-1 hash of Authority's DN issuerKeyHash [2] OCTET STRING, -- SHA-1 hash of Authority's public key authorityCertificate [3] Certificate, -- CA certificate pkcs15KeyHash [4] OCTET STRING -- PKCS #15 key hash }
encodeTo
in interface ASN1Encodable
encoder
- the DER encoder (must not be null
)ASN1Exception
- if any of the trusted authorities are invalidCopyright © 2020 JBoss by Red Hat. All rights reserved.