Aracılığıyla paylaş


PKIXBuilderParameters Class

Definition

Parameters used as input for the PKIX CertPathBuilder algorithm.

[Android.Runtime.Register("java/security/cert/PKIXBuilderParameters", DoNotGenerateAcw=true)]
public class PKIXBuilderParameters : Java.Security.Cert.PKIXParameters
[<Android.Runtime.Register("java/security/cert/PKIXBuilderParameters", DoNotGenerateAcw=true)>]
type PKIXBuilderParameters = class
    inherit PKIXParameters
Inheritance
PKIXBuilderParameters
Attributes

Remarks

Parameters used as input for the PKIX CertPathBuilder algorithm.

A PKIX CertPathBuilder uses these parameters to CertPathBuilder#build build a CertPath which has been validated according to the PKIX certification path validation algorithm.

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

In addition, an application must specify constraints on the target certificate that the CertPathBuilder will attempt to build a path to. The constraints are specified as a CertSelector object. These constraints should provide the CertPathBuilder with enough search criteria to find the target certificate. Minimal criteria for an X509Certificate usually include the subject name and/or one or more subject alternative names. If enough criteria is not specified, the CertPathBuilder may throw a CertPathBuilderException.

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

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

PKIXBuilderParameters(ICollection<TrustAnchor>, ICertSelector)

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

PKIXBuilderParameters(IntPtr, JniHandleOwnership)

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

PKIXBuilderParameters(KeyStore, ICertSelector)

Creates an instance of PKIXBuilderParameters 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.

(Inherited from PKIXParameters)
CertPathCheckers

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

(Inherited from PKIXParameters)
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.

(Inherited from PKIXParameters)
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.

(Inherited from PKIXParameters)
ExplicitPolicyRequired

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

(Inherited from PKIXParameters)
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.

(Inherited from PKIXParameters)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MaxPathLength

Returns the value of the maximum number of intermediate non-self-issued certificates that may exist in a certification path. -or- Sets the value of the maximum number of non-self-issued intermediate certificates that may exist in a certification path.

PeerReference (Inherited from Object)
PolicyMappingInhibited

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

(Inherited from PKIXParameters)
PolicyQualifiersRejected

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

(Inherited from PKIXParameters)
RevocationEnabled

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

(Inherited from PKIXParameters)
SigProvider

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

(Inherited from PKIXParameters)
TargetCertConstraints

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

(Inherited from PKIXParameters)
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.

(Inherited from PKIXParameters)

Methods

AddCertPathChecker(PKIXCertPathChecker)

Adds a PKIXCertPathChecker to the list of certification path checkers.

(Inherited from PKIXParameters)
AddCertStore(CertStore)

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

(Inherited from PKIXParameters)
Clone()

Makes a copy of this PKIXParameters object.

(Inherited from PKIXParameters)
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, 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)
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)

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