Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Protected Ctors](https://developer.android.com/reference/javax/net/ssl/X509ExtendedKeyManager#proctors) \| [Methods](https://developer.android.com/reference/javax/net/ssl/X509ExtendedKeyManager#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/javax/net/ssl/X509ExtendedKeyManager#inhmethods)

# X509ExtendedKeyManager

` public abstract class X509ExtendedKeyManager `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/javax/net/ssl/X509KeyManager `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | javax.net.ssl.X509ExtendedKeyManager |

<br />

*** ** * ** ***

Abstract class that provides for extension of the X509KeyManager interface.

Methods in this class should be overriden to provide actual implementations.

## Summary

| ### Protected constructors ||
|---|---|
| ` https://developer.android.com/reference/javax/net/ssl/X509ExtendedKeyManager#X509ExtendedKeyManager()() ` Constructor used by subclasses only. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/javax/net/ssl/X509ExtendedKeyManager#chooseEngineClientAlias(java.lang.String[],%20java.security.Principal[],%20javax.net.ssl.SSLEngine)(https://developer.android.com/reference/java/lang/String keyType, https://developer.android.com/reference/java/security/Principal issuers, https://developer.android.com/reference/javax/net/ssl/SSLEngine engine) ` Choose an alias to authenticate the client side of an `SSLEngine` connection given the public key type and the list of certificate issuer authorities recognized by the peer (if any). |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/javax/net/ssl/X509ExtendedKeyManager#chooseEngineServerAlias(java.lang.String,%20java.security.Principal[],%20javax.net.ssl.SSLEngine)(https://developer.android.com/reference/java/lang/String keyType, https://developer.android.com/reference/java/security/Principal issuers, https://developer.android.com/reference/javax/net/ssl/SSLEngine engine) ` Choose an alias to authenticate the server side of an `SSLEngine` connection given the public key type and the list of certificate issuer authorities recognized by the peer (if any). |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager ` ` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager#chooseClientAlias(java.lang.String[],%20java.security.Principal[],%20java.net.Socket)(https://developer.android.com/reference/java/lang/String keyType, https://developer.android.com/reference/java/security/Principal issuers, https://developer.android.com/reference/java/net/Socket socket) `

Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager#chooseServerAlias(java.lang.String,%20java.security.Principal[],%20java.net.Socket)(https://developer.android.com/reference/java/lang/String keyType, https://developer.android.com/reference/java/security/Principal issuers, https://developer.android.com/reference/java/net/Socket socket) `

Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
` abstract https://developer.android.com/reference/java/security/cert/X509Certificate` ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager#getCertificateChain(java.lang.String)(https://developer.android.com/reference/java/lang/String alias) `

Returns the certificate chain associated with the given alias.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager#getClientAliases(java.lang.String,%20java.security.Principal[])(https://developer.android.com/reference/java/lang/String keyType, https://developer.android.com/reference/java/security/Principal issuers) `

Get the matching aliases for authenticating the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
` abstract https://developer.android.com/reference/java/security/PrivateKey` ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager#getPrivateKey(java.lang.String)(https://developer.android.com/reference/java/lang/String alias) `

Returns the key associated with the given alias.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/javax/net/ssl/X509KeyManager#getServerAliases(java.lang.String,%20java.security.Principal[])(https://developer.android.com/reference/java/lang/String keyType, https://developer.android.com/reference/java/security/Principal issuers) `

Get the matching aliases for authenticating the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).

## Protected constructors

### X509ExtendedKeyManager

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected X509ExtendedKeyManager ()
```

Constructor used by subclasses only.

<br />

## Public methods

### chooseEngineClientAlias

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String chooseEngineClientAlias (String[] keyType, 
                Principal[] issuers, 
                SSLEngine engine)
```

Choose an alias to authenticate the client side of an `SSLEngine` connection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).

The default implementation returns null.

<br />

| Parameters ||
|---|---|
| `keyType` | `String`: the key algorithm type name(s), ordered with the most-preferred key type first. <br /> |
| `issuers` | `Principal`: the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. <br /> |
| `engine` | `SSLEngine`: the `SSLEngine` to be used for this connection. This parameter can be null, which indicates that implementations of this interface are free to select an alias applicable to any engine. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the alias name for the desired key, or null if there are no matches. <br /> |

### chooseEngineServerAlias

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String chooseEngineServerAlias (String keyType, 
                Principal[] issuers, 
                SSLEngine engine)
```

Choose an alias to authenticate the server side of an `SSLEngine` connection given the public key type and the list of certificate issuer authorities recognized by the peer (if any).

The default implementation returns null.

<br />

| Parameters ||
|---|---|
| `keyType` | `String`: the key algorithm type name. <br /> |
| `issuers` | `Principal`: the list of acceptable CA issuer subject names or null if it does not matter which issuers are used. <br /> |
| `engine` | `SSLEngine`: the `SSLEngine` to be used for this connection. This parameter can be null, which indicates that implementations of this interface are free to select an alias applicable to any engine. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the alias name for the desired key, or null if there are no matches. <br /> |