public final class JmeterKeyStore extends Object
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Get the next or only alias.
|
String |
getAlias(int index) |
int |
getAliasCount() |
X509Certificate[] |
getCertificateChain(String alias)
Get the ordered certificate chain for a specific alias.
|
String[] |
getClientAliases(String keyType,
Principal[] issuers)
Compiles the list of all client aliases with a private key.
|
static JmeterKeyStore |
getInstance(String type)
Create a keystore which returns the first alias only.
|
static JmeterKeyStore |
getInstance(String type,
int startIndex,
int endIndex)
Create a keystore which returns a range of aliases (if available)
|
PrivateKey |
getPrivateKey(String alias)
Return the private Key for a specific alias
|
void |
load(InputStream is,
String pword)
Process the input stream
|
public void load(InputStream is, String pword) throws Exception
Exception
public X509Certificate[] getCertificateChain(String alias)
public String getAlias()
public int getAliasCount()
public String getAlias(int index)
public PrivateKey getPrivateKey(String alias)
public static JmeterKeyStore getInstance(String type, int startIndex, int endIndex) throws Exception
type
- store type (e.g. JKS)startIndex
- first index (from 0)endIndex
- last index (to count -1)Exception
public static JmeterKeyStore getInstance(String type) throws Exception
type
- e.g. JKSException
public String[] getClientAliases(String keyType, Principal[] issuers)
keyType
- the key algorithm type name (RSA, DSA, etc.)issuers
- the CA certificates we are narrowing our selection on.Copyright © 1998-2013 Apache Software Foundation. All Rights Reserved.