Package org.wildfly.security.x500.cert
Class PolicyMappingsExtension
- java.lang.Object
-
- org.wildfly.security.x500.cert.X509CertificateExtension
-
- org.wildfly.security.x500.cert.PolicyMappingsExtension
-
- All Implemented Interfaces:
Extension
,ASN1Encodable
public final class PolicyMappingsExtension extends X509CertificateExtension
The policy mappings extension as defined by RFC 5280 ยง 4.2.1.5.- Author:
- David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolicyMappingsExtension.PolicyMapping
A single policy mapping.
-
Field Summary
Fields Modifier and Type Field Description private List<PolicyMappingsExtension.PolicyMapping>
policyMappings
-
Constructor Summary
Constructors Constructor Description PolicyMappingsExtension(boolean critical, List<PolicyMappingsExtension.PolicyMapping> policyMappings)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeTo(ASN1Encoder encoder)
Encode this object.String
getId()
Get the OID of this extension.-
Methods inherited from class org.wildfly.security.x500.cert.X509CertificateExtension
encode, getValue, isCritical
-
-
-
-
Field Detail
-
policyMappings
private final List<PolicyMappingsExtension.PolicyMapping> policyMappings
-
-
Constructor Detail
-
PolicyMappingsExtension
public PolicyMappingsExtension(boolean critical, List<PolicyMappingsExtension.PolicyMapping> policyMappings)
Construct a new instance.- Parameters:
critical
-true
if the extension should be marked critical (recommended) orfalse
otherwisepolicyMappings
- the list of policy mappings (must not benull
)
-
-
Method Detail
-
getId
public String getId()
Description copied from class:X509CertificateExtension
Get the OID of this extension.- Specified by:
getId
in interfaceExtension
- Specified by:
getId
in classX509CertificateExtension
- Returns:
- the OID of this extension (must not be
null
)
-
encodeTo
public void encodeTo(ASN1Encoder encoder)
Description copied from interface:ASN1Encodable
Encode this object.- Parameters:
encoder
- the encoder (must not benull
)
-
-