Udostępnij za pośrednictwem


X509CertSelector.Policy Property

Definition

Returns the policy criterion. -or- Sets the policy constraint.

public virtual System.Collections.Generic.ICollection<string>? Policy { [Android.Runtime.Register("getPolicy", "()Ljava/util/Set;", "GetGetPolicyHandler")] get; [Android.Runtime.Register("setPolicy", "(Ljava/util/Set;)V", "GetSetPolicy_Ljava_util_Set_Handler")] set; }
[<get: Android.Runtime.Register("getPolicy", "()Ljava/util/Set;", "GetGetPolicyHandler")>]
[<set: Android.Runtime.Register("setPolicy", "(Ljava/util/Set;)V", "GetSetPolicy_Ljava_util_Set_Handler")>]
member this.Policy : System.Collections.Generic.ICollection<string> with get, set

Property Value

an immutable Set of certificate policy OIDs in string format (or null)

Attributes

Remarks

Property getter documentation:

Returns the policy criterion. The X509Certificate must include at least one of the specified policies in its certificate policies extension. If the Set returned is empty, then the X509Certificate must include at least some specified policy in its certificate policies extension. If the Set returned is null, no policy check will be performed.

Java documentation for java.security.cert.X509CertSelector.getPolicy().

Property setter documentation:

Sets the policy constraint. The X509Certificate must include at least one of the specified policies in its certificate policies extension. If certPolicySet is empty, then the X509Certificate must include at least some specified policy in its certificate policies extension. If certPolicySet is null, no policy check will be performed.

Note that the Set is cloned to protect against subsequent modifications.

Java documentation for java.security.cert.X509CertSelector.setPolicy(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