PKIXParameters Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
PKIXParameters(KeyStore) |
Creates an instance of |
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 |
CertStores |
Returns an immutable |
Class |
Returns the runtime class of this |
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 |
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 |
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 |
Methods
AddCertPathChecker(PKIXCertPathChecker) |
Adds a |
AddCertStore(CertStore) |
Adds a |
Clone() |
Makes a copy of this |
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) |