Package org.wildfly.security.x500
Class TrustedAuthority.HashTrustedAuthority
- java.lang.Object
-
- org.wildfly.security.x500.TrustedAuthority
-
- org.wildfly.security.x500.TrustedAuthority.HashTrustedAuthority
-
- All Implemented Interfaces:
ASN1Encodable
- Direct Known Subclasses:
TrustedAuthority.IssuerKeyHashTrustedAuthority
,TrustedAuthority.IssuerNameHashTrustedAuthority
,TrustedAuthority.PKCS15KeyHashTrustedAuthority
- Enclosing class:
- TrustedAuthority
public abstract static class TrustedAuthority.HashTrustedAuthority extends TrustedAuthority
A trusted authority that is identified by a hash.- Author:
- Farah Juma
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wildfly.security.x500.TrustedAuthority
TrustedAuthority.CertificateTrustedAuthority, TrustedAuthority.HashTrustedAuthority, TrustedAuthority.IssuerKeyHashTrustedAuthority, TrustedAuthority.IssuerNameHashTrustedAuthority, TrustedAuthority.NameTrustedAuthority, TrustedAuthority.PKCS15KeyHashTrustedAuthority
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
hash
-
Fields inherited from class org.wildfly.security.x500.TrustedAuthority
AUTHORITY_CERTIFICATE, AUTHORITY_NAME, ISSUER_KEY_HASH, ISSUER_NAME_HASH, PKCS_15_KEY_HASH
-
-
Constructor Summary
Constructors Constructor Description HashTrustedAuthority(int type, byte[] hash)
HashTrustedAuthority(int type, String hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeTo(ASN1Encoder encoder)
Encode thisTrustedAuth
element using the given trusted authority and DER encoder, whereTrustedAuth
is defined as:byte[]
getIdentifier()
Get the identifier for this trusted authority.-
Methods inherited from class org.wildfly.security.x500.TrustedAuthority
getType
-
-
-
-
Constructor Detail
-
HashTrustedAuthority
HashTrustedAuthority(int type, byte[] hash)
-
HashTrustedAuthority
HashTrustedAuthority(int type, String hash)
-
-
Method Detail
-
getIdentifier
public byte[] getIdentifier()
Description copied from class:TrustedAuthority
Get the identifier for this trusted authority.- Specified by:
getIdentifier
in classTrustedAuthority
- Returns:
- the identifier for this trusted authority
-
encodeTo
public void encodeTo(ASN1Encoder encoder)
Description copied from class:TrustedAuthority
Encode this
TrustedAuth
element using the given trusted authority and DER encoder, whereTrustedAuth
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 }
- Specified by:
encodeTo
in interfaceASN1Encodable
- Specified by:
encodeTo
in classTrustedAuthority
- Parameters:
encoder
- the DER encoder (must not benull
)
-
-