Code example for PrivateKey

Methods: getAlgorithmgetFormat

0
        return keyManager.getClientAliases(keyType, issuers);
    } 
 
    public PrivateKey getPrivateKey(String alias) {
        PrivateKey pk = keyManager.getPrivateKey(alias);
        if (Debug.verboseOn()) Debug.logVerbose("getPrivateKey for alias [" + alias + "] got " + (pk == null ? "[Not Found!]" : "[alg:" + pk.getAlgorithm() + ";format:" + pk.getFormat() + "]"), module);
        //Debug.logInfo(new Exception(), "Location where getPrivateKey is called", module); 
        return pk;
    } 
 
    public String[] getServerAliases(String keyType, Principal[] issuers) {
        return keyManager.getServerAliases(keyType, issuers);
    } 
}