
public static final class TrustedAuthority.CertificateTrustedAuthority extends TrustedAuthority
TrustedAuthority.CertificateTrustedAuthority, TrustedAuthority.HashTrustedAuthority, TrustedAuthority.IssuerKeyHashTrustedAuthority, TrustedAuthority.IssuerNameHashTrustedAuthority, TrustedAuthority.NameTrustedAuthority, TrustedAuthority.PKCS15KeyHashTrustedAuthorityAUTHORITY_CERTIFICATE, AUTHORITY_NAME, ISSUER_KEY_HASH, ISSUER_NAME_HASH, PKCS_15_KEY_HASH| Constructor and Description |
|---|
CertificateTrustedAuthority(X509Certificate cert)
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: |
X509Certificate |
getIdentifier()
Get the identifier for this trusted authority.
|
getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofBMPString, ofEncodedBytes, ofIA5String, ofInteger, ofInteger, ofOid, ofPrintableString, ofUniversalString, ofUtf8Stringpublic CertificateTrustedAuthority(X509Certificate cert)
cert - this trusted authority's certificatepublic X509Certificate getIdentifier()
TrustedAuthoritygetIdentifier in class TrustedAuthoritypublic 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 ASN1EncodableencodeTo in class TrustedAuthorityencoder - the DER encoder (must not be null)Copyright © 2020 JBoss by Red Hat. All rights reserved.