PKIXParameters Class

Definition

Parameters used as input for the PKIX CertPathValidator algorithm.

[Android.Runtime.Register("java/security/cert/PKIXParameters", DoNotGenerateAcw=true)]
public class PKIXParameters : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Security.Cert.ICertPathParameters
[<Android.Runtime.Register("java/security/cert/PKIXParameters", DoNotGenerateAcw=true)>]
type PKIXParameters = class
    inherit Object
    interface ICertPathParameters
    interface ICloneable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
PKIXParameters
Derived
Attributes
Implements

Remarks

Parameters used as input for the PKIX CertPathValidator algorithm.

A PKIX CertPathValidator uses these parameters to validate a CertPath according to the PKIX certification path validation algorithm.

To instantiate a PKIXParameters object, an application must specify one or more most-trusted CAs as defined by the PKIX certification path validation algorithm. The most-trusted CAs can be specified using one of two constructors. An application can call #PKIXParameters(Set) PKIXParameters(Set), specifying a Set of TrustAnchor objects, each of which identify a most-trusted CA. Alternatively, an application can call #PKIXParameters(KeyStore) PKIXParameters(KeyStore), specifying a KeyStore instance containing trusted certificate entries, each of which will be considered as a most-trusted CA.

Once a PKIXParameters object has been created, other parameters can be specified (by calling #setInitialPolicies setInitialPolicies or #setDate setDate, for instance) and then the PKIXParameters is passed along with the CertPath to be validated to CertPathValidator#validate CertPathValidator.validate.

Any parameter that is not set (or is set to null) will be set to the default value for that parameter. The default value for the date parameter is null, which indicates the current time when the path is validated. The default for the remaining parameters is the least constrained.

<b>Concurrent Access</b>

Unless otherwise specified, the methods defined in this class are not thread-safe. Multiple threads that need to access a single object concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating separate objects need not synchronize.

Added in 1.4.

Java documentation for java.security.cert.PKIXParameters.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

PKIXParameters(ICollection<TrustAnchor>)

Creates an instance of PKIXParameters with the specified Set of most-trusted CAs.

PKIXParameters(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

PKIXParameters(KeyStore)

Creates an instance of PKIXParameters that populates the set of most-trusted CAs from the trusted certificate entries contained in the specified KeyStore.

Properties

AnyPolicyInhibited

Checks whether the any policy OID should be processed if it is included in a certificate. -or- Sets state to determine if the any policy OID should be processed if it is included in a certificate.

CertPathCheckers

Returns the List of certification path checkers. -or- Sets a List of additional certification path checkers.

CertStores

Returns an immutable List of CertStores that are used to find certificates and CRLs. -or- Sets the list of CertStores to be used in finding certificates and CRLs.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Date

Returns the time for which the validity of the certification path should be determined. -or- Sets the time for which the validity of the certification path should be determined.

ExplicitPolicyRequired

Checks if explicit policy is required. -or- Sets the ExplicitPolicyRequired flag.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
InitialPolicies

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. -or- 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.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
PolicyMappingInhibited

Checks if policy mapping is inhibited. -or- Sets the PolicyMappingInhibited flag.

PolicyQualifiersRejected

Gets the PolicyQualifiersRejected flag. -or- Sets the PolicyQualifiersRejected flag.

RevocationEnabled

Checks the RevocationEnabled flag. -or- Sets the RevocationEnabled flag.

SigProvider

Returns the signature provider's name, or null if not set. -or- Sets the signature provider's name.

TargetCertConstraints

Returns the required constraints on the target certificate. -or- Sets the required constraints on the target certificate.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TrustAnchors

Returns an immutable Set of the most-trusted CAs. -or- Sets the Set of most-trusted CAs.

Methods

AddCertPathChecker(PKIXCertPathChecker)

Adds a PKIXCertPathChecker to the list of certification path checkers.

AddCertStore(CertStore)

Adds a CertStore to the end of the list of CertStores used in finding certificates and CRLs.

Clone()

Makes a copy of this PKIXParameters object.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to