Compartir a través de


PKIXParameters.InitialPolicies Property

Definition

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.

public virtual System.Collections.Generic.ICollection<string>? InitialPolicies { [Android.Runtime.Register("getInitialPolicies", "()Ljava/util/Set;", "GetGetInitialPoliciesHandler")] get; [Android.Runtime.Register("setInitialPolicies", "(Ljava/util/Set;)V", "GetSetInitialPolicies_Ljava_util_Set_Handler")] set; }
[<get: Android.Runtime.Register("getInitialPolicies", "()Ljava/util/Set;", "GetGetInitialPoliciesHandler")>]
[<set: Android.Runtime.Register("setInitialPolicies", "(Ljava/util/Set;)V", "GetSetInitialPolicies_Ljava_util_Set_Handler")>]
member this.InitialPolicies : System.Collections.Generic.ICollection<string> with get, set

Property Value

an immutable Set of initial policy OIDs in String format, or an empty Set (implying any policy is acceptable). Never returns null.

Attributes

Remarks

Property getter documentation:

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.

Java documentation for java.security.cert.PKIXParameters.getInitialPolicies().

Property setter documentation:

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.

Java documentation for java.security.cert.PKIXParameters.setInitialPolicies(java.util.Set<java.lang.String>).

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.

Applies to