Unit |
addCertPathChecker(checker: PKIXCertPathChecker!)
Adds a PKIXCertPathChecker to the list of certification path checkers. See the setCertPathCheckers method for more details.
Note that the PKIXCertPathChecker is cloned to protect against subsequent modifications.
|
Unit |
addCertStore(store: CertStore!)
Adds a CertStore to the end of the list of CertStores used in finding certificates and CRLs.
|
Any |
clone()
Makes a copy of this PKIXParameters object. Changes to the copy will not affect the original and vice versa.
|
MutableList<PKIXCertPathChecker!>! |
getCertPathCheckers()
Returns the List of certification path checkers. The returned List is immutable, and each PKIXCertPathChecker in the List is cloned to protect against subsequent modifications.
|
MutableList<CertStore!>! |
getCertStores()
Returns an immutable List of CertStores that are used to find certificates and CRLs.
|
Date! |
getDate()
Returns the time for which the validity of the certification path should be determined. If null, the current time is used.
Note that the Date returned is copied to protect against subsequent modifications.
|
MutableSet<String!>! |
getInitialPolicies()
Returns an immutable Set of initial policy identifiers (OID strings), indicating that any one of these policies would be acceptable to the certificate user for the purposes of certification path processing. The default return value is an empty Set, which is interpreted as meaning that any policy would be acceptable.
|
Boolean |
getPolicyQualifiersRejected()
Gets the PolicyQualifiersRejected flag. If this flag is true, certificates that include policy qualifiers in a certificate policies extension that is marked critical are rejected. If the flag is false, certificates are not rejected on this basis.
When a PKIXParameters object is created, this flag is set to true. This setting reflects the most common (and simplest) strategy for processing policy qualifiers. Applications that want to use a more sophisticated policy must set this flag to false.
|
String! |
getSigProvider()
Returns the signature provider's name, or null if not set.
|
CertSelector! |
getTargetCertConstraints()
Returns the required constraints on the target certificate. The constraints are returned as an instance of CertSelector. If null, no constraints are defined.
Note that the CertSelector returned is cloned to protect against subsequent modifications.
|
MutableSet<TrustAnchor!>! |
getTrustAnchors()
Returns an immutable Set of the most-trusted CAs.
|
Boolean |
isAnyPolicyInhibited()
Checks whether the any policy OID should be processed if it is included in a certificate.
|
Boolean |
isExplicitPolicyRequired()
Checks if explicit policy is required. If this flag is true, an acceptable policy needs to be explicitly identified in every certificate. By default, the ExplicitPolicyRequired flag is false.
|
Boolean |
isPolicyMappingInhibited()
Checks if policy mapping is inhibited. If this flag is true, policy mapping is inhibited. By default, policy mapping is not inhibited (the flag is false).
|
Boolean |
isRevocationEnabled()
Checks the RevocationEnabled flag. If this flag is true, the default revocation checking mechanism of the underlying PKIX service provider will be used. If this flag is false, the default revocation checking mechanism will be disabled (not used). See the setRevocationEnabled method for more details on setting the value of this flag.
|
Unit |
setAnyPolicyInhibited(val: Boolean)
Sets state to determine if the any policy OID should be processed if it is included in a certificate. By default, the any policy OID is not inhibited (isAnyPolicyInhibited() returns false).
|
Unit |
setCertPathCheckers(checkers: MutableList<PKIXCertPathChecker!>!)
Sets a List of additional certification path checkers. If the specified List contains an object that is not a PKIXCertPathChecker, it is ignored.
Each PKIXCertPathChecker specified implements additional checks on a certificate. Typically, these are checks to process and verify private extensions contained in certificates. Each PKIXCertPathChecker should be instantiated with any initialization parameters needed to execute the check.
This method allows sophisticated applications to extend a PKIX CertPathValidator or CertPathBuilder. Each of the specified PKIXCertPathCheckers will be called, in turn, by a PKIX CertPathValidator or CertPathBuilder for each certificate processed or validated.
Regardless of whether these additional PKIXCertPathCheckers are set, a PKIX CertPathValidator or CertPathBuilder must perform all of the required PKIX checks on each certificate. The one exception to this rule is if the RevocationEnabled flag is set to false (see the setRevocationEnabled method).
Note that the List supplied here is copied and each PKIXCertPathChecker in the list is cloned to protect against subsequent modifications.
|
Unit |
setCertStores(stores: MutableList<CertStore!>!)
Sets the list of CertStores to be used in finding certificates and CRLs. May be null, in which case no CertStores will be used. The first CertStores in the list may be preferred to those that appear later.
Note that the List is copied to protect against subsequent modifications.
|
Unit |
setDate(date: Date!)
Sets the time for which the validity of the certification path should be determined. If null, the current time is used.
Note that the Date supplied here is copied to protect against subsequent modifications.
|
Unit |
setExplicitPolicyRequired(val: Boolean)
Sets the ExplicitPolicyRequired flag. If this flag is true, an acceptable policy needs to be explicitly identified in every certificate. By default, the ExplicitPolicyRequired flag is false.
|
Unit |
setInitialPolicies(initialPolicies: MutableSet<String!>!)
Sets the Set of initial policy identifiers (OID strings), indicating that any one of these policies would be acceptable to the certificate user for the purposes of certification path processing. By default, any policy is acceptable (i.e. all policies), so a user that wants to allow any policy as acceptable does not need to call this method, or can call it with an empty Set (or null).
Note that the Set is copied to protect against subsequent modifications.
|
Unit |
setPolicyMappingInhibited(val: Boolean)
Sets the PolicyMappingInhibited flag. If this flag is true, policy mapping is inhibited. By default, policy mapping is not inhibited (the flag is false).
|
Unit |
setPolicyQualifiersRejected(qualifiersRejected: Boolean)
Sets the PolicyQualifiersRejected flag. If this flag is true, certificates that include policy qualifiers in a certificate policies extension that is marked critical are rejected. If the flag is false, certificates are not rejected on this basis.
When a PKIXParameters object is created, this flag is set to true. This setting reflects the most common (and simplest) strategy for processing policy qualifiers. Applications that want to use a more sophisticated policy must set this flag to false.
Note that the PKIX certification path validation algorithm specifies that any policy qualifier in a certificate policies extension that is marked critical must be processed and validated. Otherwise the certification path must be rejected. If the policyQualifiersRejected flag is set to false, it is up to the application to validate all policy qualifiers in this manner in order to be PKIX compliant.
|
Unit |
setRevocationEnabled(val: Boolean)
Sets the RevocationEnabled flag. If this flag is true, the default revocation checking mechanism of the underlying PKIX service provider will be used. If this flag is false, the default revocation checking mechanism will be disabled (not used).
When a PKIXParameters object is created, this flag is set to true. This setting reflects the most common strategy for checking revocation, since each service provider must support revocation checking to be PKIX compliant. Sophisticated applications should set this flag to false when it is not practical to use a PKIX service provider's default revocation checking mechanism or when an alternative revocation checking mechanism is to be substituted (by also calling the addCertPathChecker or setCertPathCheckers methods).
|
Unit |
setSigProvider(sigProvider: String!)
Sets the signature provider's name. The specified provider will be preferred when creating Signature objects. If null or not set, the first provider found supporting the algorithm will be used.
|
Unit |
setTargetCertConstraints(selector: CertSelector!)
Sets the required constraints on the target certificate. The constraints are specified as an instance of CertSelector. If null, no constraints are defined.
Note that the CertSelector specified is cloned to protect against subsequent modifications.
|
Unit |
setTrustAnchors(trustAnchors: MutableSet<TrustAnchor!>!)
Sets the Set of most-trusted CAs.
Note that the Set is copied to protect against subsequent modifications.
|