Example usage for javax.net.ssl X509ExtendedKeyManager chooseEngineClientAlias

List of usage examples for javax.net.ssl X509ExtendedKeyManager chooseEngineClientAlias

Introduction

In this page you can find the example usage for javax.net.ssl X509ExtendedKeyManager chooseEngineClientAlias.

Prototype

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

Source Link

Document

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).

Usage

From source file:org.apache.hadoop.security.ssl.ReloadingX509KeyManager.java

@Override
public String chooseEngineClientAlias(String[] keyType, Principal[] issuers, SSLEngine engine) {
    X509ExtendedKeyManager km = keyManagerLocalRef.get();
    if (km != null) {
        return km.chooseEngineClientAlias(keyType, issuers, engine);
    }//from   www  . ja va 2  s  .co  m
    return null;
}