Package org.wildfly.security.x500
Class TrustedAuthority
- java.lang.Object
-
- org.wildfly.security.x500.TrustedAuthority
-
- All Implemented Interfaces:
ASN1Encodable
- Direct Known Subclasses:
TrustedAuthority.CertificateTrustedAuthority,TrustedAuthority.HashTrustedAuthority,TrustedAuthority.NameTrustedAuthority
public abstract class TrustedAuthority extends Object implements ASN1Encodable
A representation of a trusted certificate authority.- Author:
- Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTrustedAuthority.CertificateTrustedAuthorityA trusted authority that is identified by its certificate.static classTrustedAuthority.HashTrustedAuthorityA trusted authority that is identified by a hash.static classTrustedAuthority.IssuerKeyHashTrustedAuthorityA trusted authority that is identified by the hash of its public key.static classTrustedAuthority.IssuerNameHashTrustedAuthorityA trusted authority that is identified by the hash of its name.static classTrustedAuthority.NameTrustedAuthorityA trusted authority that is identified by its name.static classTrustedAuthority.PKCS15KeyHashTrustedAuthorityA trusted authority that is identified by the PKCS #15 key hash.
-
Field Summary
Fields Modifier and Type Field Description static intAUTHORITY_CERTIFICATEstatic intAUTHORITY_NAMEstatic intISSUER_KEY_HASHstatic intISSUER_NAME_HASHstatic intPKCS_15_KEY_HASH
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidencodeTo(ASN1Encoder encoder)Encode thisTrustedAuthelement using the given trusted authority and DER encoder, whereTrustedAuthis defined as:abstract ObjectgetIdentifier()Get the identifier for this trusted authority.intgetType()Get the type of this trusted authority.
-
-
-
Field Detail
-
AUTHORITY_NAME
public static final int AUTHORITY_NAME
- See Also:
- Constant Field Values
-
ISSUER_NAME_HASH
public static final int ISSUER_NAME_HASH
- See Also:
- Constant Field Values
-
ISSUER_KEY_HASH
public static final int ISSUER_KEY_HASH
- See Also:
- Constant Field Values
-
AUTHORITY_CERTIFICATE
public static final int AUTHORITY_CERTIFICATE
- See Also:
- Constant Field Values
-
PKCS_15_KEY_HASH
public static final int PKCS_15_KEY_HASH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public int getType()
Get the type of this trusted authority.- Returns:
- the type of this trusted authority
-
getIdentifier
public abstract Object getIdentifier()
Get the identifier for this trusted authority.- Returns:
- the identifier for this trusted authority
-
encodeTo
public abstract void encodeTo(ASN1Encoder encoder) throws ASN1Exception
Encode this
TrustedAuthelement using the given trusted authority and DER encoder, whereTrustedAuthis 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 }- Specified by:
encodeToin interfaceASN1Encodable- Parameters:
encoder- the DER encoder (must not benull)- Throws:
ASN1Exception- if any of the trusted authorities are invalid
-
-