Example usage for javax.net.ssl X509ExtendedKeyManager getCertificateChain

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

Introduction

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

Prototype

public X509Certificate[] getCertificateChain(String alias);

Source Link

Document

Returns the certificate chain associated with the given alias.

Usage

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

@Override
public X509Certificate[] getCertificateChain(String s) {
    X509ExtendedKeyManager km = keyManagerLocalRef.get();
    if (km != null) {
        return km.getCertificateChain(s);
    }//from   w  w w.  j av  a2 s.c  om
    return null;
}