public static final class TrustedAuthority.NameTrustedAuthority extends TrustedAuthority
TrustedAuthority.CertificateTrustedAuthority, TrustedAuthority.HashTrustedAuthority, TrustedAuthority.IssuerKeyHashTrustedAuthority, TrustedAuthority.IssuerNameHashTrustedAuthority, TrustedAuthority.NameTrustedAuthority, TrustedAuthority.PKCS15KeyHashTrustedAuthority
AUTHORITY_CERTIFICATE, AUTHORITY_NAME, ISSUER_KEY_HASH, ISSUER_NAME_HASH, PKCS_15_KEY_HASH
Constructor and Description |
---|
NameTrustedAuthority(String name)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeTo(ASN1Encoder encoder)
Encode this
TrustedAuth element using the given trusted authority and DER encoder,
where TrustedAuth is defined as: |
String |
getIdentifier()
Get the identifier for this trusted authority.
|
getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ofBMPString, ofEncodedBytes, ofIA5String, ofInteger, ofInteger, ofOid, ofPrintableString, ofUniversalString, ofUtf8String
public NameTrustedAuthority(String name)
name
- the distinguished name of this trusted authority, as a String
public String getIdentifier()
TrustedAuthority
getIdentifier
in class TrustedAuthority
public void encodeTo(ASN1Encoder encoder)
TrustedAuthority
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
encodeTo
in class TrustedAuthority
encoder
- the DER encoder (must not be null
)Copyright © 2020 JBoss by Red Hat. All rights reserved.