Aracılığıyla paylaş


Identity.PublicKey Property

Definition

Caution

deprecated

Returns this identity's public key. -or- Sets this identity's public key.

[System.Obsolete("deprecated")]
public virtual Java.Security.IPublicKey? PublicKey { [Android.Runtime.Register("getPublicKey", "()Ljava/security/PublicKey;", "GetGetPublicKeyHandler")] get; [Android.Runtime.Register("setPublicKey", "(Ljava/security/PublicKey;)V", "GetSetPublicKey_Ljava_security_PublicKey_Handler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getPublicKey", "()Ljava/security/PublicKey;", "GetGetPublicKeyHandler")>]
[<set: Android.Runtime.Register("setPublicKey", "(Ljava/security/PublicKey;)V", "GetSetPublicKey_Ljava_security_PublicKey_Handler")>]
member this.PublicKey : Java.Security.IPublicKey with get, set

Property Value

the public key for this identity.

Attributes

Exceptions

if another Identity in the same scope as this Identity already has the same PublicKey.

Remarks

Property getter documentation:

Returns this identity's public key.

Java documentation for java.security.Identity.getPublicKey().

Property setter documentation:

Sets this identity's public key. The old key and all of this identity's certificates are removed by this operation.

First, if there is a security manager, its checkSecurityAccess method is called with "setIdentityPublicKey" as its argument to see if it's ok to set the public key.

Java documentation for java.security.Identity.setPublicKey(java.security.PublicKey).

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