Język

IkeSessionParams.Builder.SetAuthDigitalSignature Method

Definition

Overloads

Name Description
SetAuthDigitalSignature(X509Certificate, X509Certificate, IPrivateKey)

Configures the IkeSession to use public-key-signature-based authentication.

SetAuthDigitalSignature(X509Certificate, X509Certificate, IList<X509Certificate>, IPrivateKey)

Configures the IkeSession to use public-key-signature-based authentication.

SetAuthDigitalSignature(X509Certificate, X509Certificate, IPrivateKey)

Configures the IkeSession to use public-key-signature-based authentication.

[Android.Runtime.Register("setAuthDigitalSignature", "(Ljava/security/cert/X509Certificate;Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.IkeSessionParams.Builder SetAuthDigitalSignature(Java.Security.Cert.X509Certificate? serverCaCert, Java.Security.Cert.X509Certificate clientEndCert, Java.Security.IPrivateKey clientPrivateKey);
[<Android.Runtime.Register("setAuthDigitalSignature", "(Ljava/security/cert/X509Certificate;Ljava/security/cert/X509Certificate;Ljava/security/PrivateKey;)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)>]
member this.SetAuthDigitalSignature : Java.Security.Cert.X509Certificate * Java.Security.Cert.X509Certificate * Java.Security.IPrivateKey -> Android.Net.IpSec.Ike.IkeSessionParams.Builder

Parameters

serverCaCert
X509Certificate

the CA certificate for validating the received server certificate(s). If a certificate is provided, it MUST be the root CA used by the server, or authentication will fail. If no certificate is provided, any root CA in the system's truststore is considered acceptable. This value may be null.

clientEndCert
X509Certificate

the end certificate for remote server to verify the locally generated signature. This value cannot be null.

clientPrivateKey
IPrivateKey

private key to generate outbound digital signature. The PrivateKey MUST be an instance of RSAKey. This value cannot be null.

Returns

Builder this, to facilitate chaining. This value cannot be null.

Attributes

Remarks

Configures the IkeSession to use public-key-signature-based authentication.

The public key included by the client end certificate and the private key used for signing MUST be a matching key pair.

The IKE library will use the strongest signature algorithm supported by both sides.

Currenly only RSA digital signature is supported.

Android reference for android.net.ipsec.ike.IkeSessionParams.Builder.setAuthDigitalSignature.

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

SetAuthDigitalSignature(X509Certificate, X509Certificate, IList<X509Certificate>, IPrivateKey)

Configures the IkeSession to use public-key-signature-based authentication.

[Android.Runtime.Register("setAuthDigitalSignature", "(Ljava/security/cert/X509Certificate;Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/PrivateKey;)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)]
public Android.Net.IpSec.Ike.IkeSessionParams.Builder SetAuthDigitalSignature(Java.Security.Cert.X509Certificate? serverCaCert, Java.Security.Cert.X509Certificate clientEndCert, System.Collections.Generic.IList<Java.Security.Cert.X509Certificate> clientIntermediateCerts, Java.Security.IPrivateKey clientPrivateKey);
[<Android.Runtime.Register("setAuthDigitalSignature", "(Ljava/security/cert/X509Certificate;Ljava/security/cert/X509Certificate;Ljava/util/List;Ljava/security/PrivateKey;)Landroid/net/ipsec/ike/IkeSessionParams$Builder;", "", ApiSince=31)>]
member this.SetAuthDigitalSignature : Java.Security.Cert.X509Certificate * Java.Security.Cert.X509Certificate * System.Collections.Generic.IList<Java.Security.Cert.X509Certificate> * Java.Security.IPrivateKey -> Android.Net.IpSec.Ike.IkeSessionParams.Builder

Parameters

serverCaCert
X509Certificate

the CA certificate for validating the received server certificate(s). If a null value is provided, IKE library will try all default CA certificates stored in Android system to do the validation. Otherwise, it will only use the provided CA certificate.

clientEndCert
X509Certificate

the end certificate for remote server to verify locally generated signature. This value cannot be null.

clientIntermediateCerts
IList<X509Certificate>

intermediate certificates for the remote server to validate the end certificate. This value cannot be null.

clientPrivateKey
IPrivateKey

private key to generate outbound digital signature. The PrivateKey MUST be an instance of RSAKey. This value cannot be null.

Returns

Builder this, to facilitate chaining. This value cannot be null.

Attributes

Remarks

Configures the IkeSession to use public-key-signature-based authentication.

The public key included by the client end certificate and the private key used for signing MUST be a matching key pair.

The IKE library will use the strongest signature algorithm supported by both sides.

Currenly only RSA digital signature is supported.

Android reference for android.net.ipsec.ike.IkeSessionParams.Builder.setAuthDigitalSignature.

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