Example usage for javax.net.ssl X509ExtendedKeyManager chooseServerAlias

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

Introduction

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

Prototype

public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket);

Source Link

Document

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

Usage

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

@Override
public String chooseServerAlias(String s, Principal[] principals, Socket socket) {
    X509ExtendedKeyManager km = keyManagerLocalRef.get();
    if (km != null) {
        return km.chooseServerAlias(s, principals, socket);
    }//from  w w  w .ja v  a2  s.c  om
    return null;
}