Example usage for javax.net.ssl X509ExtendedKeyManager getServerAliases

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

Introduction

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

Prototype

public String[] getServerAliases(String keyType, Principal[] issuers);

Source Link

Document

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

Usage

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

@Override
public String[] getServerAliases(String s, Principal[] principals) {
    X509ExtendedKeyManager km = keyManagerLocalRef.get();
    if (km != null) {
        return km.getServerAliases(s, principals);
    }/*w  w w .  j a  v a 2s.c o m*/
    return null;
}