public class PoliciesList
extends java.lang.Object
implements java.io.Serializable
Class that represents Policy Lists.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static int |
IDENTIFIER_OID_AS_UNSPECIFIED
Constant attribute that represents that the identifier type is undefined.
|
static int |
IDENTIFIER_OID_AS_URI
Constant attribute that represents that the identifier is defined as URI.
|
static int |
IDENTIFIER_OID_AS_URN
Constant attribute that represents that the identifier is defined as URN.
|
| Constructor and Description |
|---|
PoliciesList()
Constructor method for the class PoliciesList.java.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNewPolicyIdentifier(java.lang.String policyIdentifier,
int type)
Adds a new policy identifier if not is
null. |
boolean |
checkCertificate(java.security.cert.X509Certificate cert)
Checks if the input certificate has the CertificatePolicies extension and it includes all the
OIDs declared in this object.
|
java.util.List<java.lang.String> |
getPolicyIdentifiersList()
Gets the policy identifiers list.
|
boolean |
isThereSomePolicyIdentifier()
Checks if there is at least one policy identifier in the list.
|
public static final int IDENTIFIER_OID_AS_URN
public static final int IDENTIFIER_OID_AS_URI
public static final int IDENTIFIER_OID_AS_UNSPECIFIED
public PoliciesList()
public final java.util.List<java.lang.String> getPolicyIdentifiersList()
public final boolean isThereSomePolicyIdentifier()
true if there is at least one policy identifier in the list,
otherwise false.public final void addNewPolicyIdentifier(java.lang.String policyIdentifier,
int type)
null.policyIdentifier - policy identifier to add.type - Identifier type. It must be one of the following: IDENTIFIER_OID_AS_URN,
IDENTIFIER_OID_AS_URI or IDENTIFIER_OID_AS_UNSPECIFIED.public final boolean checkCertificate(java.security.cert.X509Certificate cert)
throws TSLQualificationEvalProcessException
cert - Certificate X509v3 to check.true if the input certificate has the CertificatePolicies extension and it includes all the
OIDs declared in this object, otherwise false.TSLQualificationEvalProcessException - In case of some error evaluating the input certificate
with all defined criteria.