Example usage for javax.net.ssl X509ExtendedKeyManager getPrivateKey

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

Introduction

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

Prototype

public PrivateKey getPrivateKey(String alias);

Source Link

Document

Returns the key associated with the given alias.

Usage

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

@Override
public PrivateKey getPrivateKey(String s) {
    X509ExtendedKeyManager km = keyManagerLocalRef.get();
    if (km != null) {
        return km.getPrivateKey(s);
    }//  w  w  w  .  j  ava 2s  . c  o  m
    return null;
}