Package org.wildfly.security.x500.cert
Class CertificatePoliciesExtension.PolicyQualifier
- java.lang.Object
-
- org.wildfly.security.x500.cert.CertificatePoliciesExtension.PolicyQualifier
-
- All Implemented Interfaces:
ASN1Encodable
- Enclosing class:
- CertificatePoliciesExtension
public static final class CertificatePoliciesExtension.PolicyQualifier extends Object implements ASN1Encodable
A qualifier for a policy information entry.
-
-
Constructor Summary
Constructors Constructor Description PolicyQualifier(String policyQualifierId, ASN1Encodable body)
Construct a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificatePoliciesExtension.PolicyQualifier
cpsQualifier(String uri)
Construct a CPS policy qualifier.void
encodeTo(ASN1Encoder encoder)
Encode this object.static CertificatePoliciesExtension.PolicyQualifier
userNoticeQualifier(String organizationText, BigInteger[] noticeNumbers, String explicitText)
Construct a UserNotice policy qualifier.
-
-
-
Constructor Detail
-
PolicyQualifier
public PolicyQualifier(String policyQualifierId, ASN1Encodable body)
Construct a new instance.- Parameters:
policyQualifierId
- the policy qualifier OID (must not benull
)body
- the body of the policy extension (must not benull
)
-
-
Method Detail
-
encodeTo
public void encodeTo(ASN1Encoder encoder)
Description copied from interface:ASN1Encodable
Encode this object.- Specified by:
encodeTo
in interfaceASN1Encodable
- Parameters:
encoder
- the encoder (must not benull
)
-
userNoticeQualifier
public static CertificatePoliciesExtension.PolicyQualifier userNoticeQualifier(String organizationText, BigInteger[] noticeNumbers, String explicitText)
Construct a UserNotice policy qualifier.- Parameters:
organizationText
- the organization text, ornull
to skip the NoticeReference sectionnoticeNumbers
- the notice numbers (only used if organization text is given)explicitText
- explicit text for the notice, ornull
to skip the DisplayText section- Returns:
- the constructed policy qualifier
-
cpsQualifier
public static CertificatePoliciesExtension.PolicyQualifier cpsQualifier(String uri)
Construct a CPS policy qualifier.- Parameters:
uri
- the CPS URI (must not benull
)- Returns:
- the constructed policy qualifier
-
-