public class KeyResolver extends Object
Modifier and Type | Class and Description |
---|---|
protected static interface |
KeyResolver.Accessor |
Modifier and Type | Field and Description |
---|---|
protected static KeyResolver.Accessor |
BY_ALG_AND_PURPOSE |
protected static KeyResolver.Accessor |
BY_KEY_NAME |
protected static KeyResolver.Accessor |
BY_TOKEN_REFERENCE |
protected static KeyResolver.Accessor |
BY_X509_DATA |
Modifier and Type | Method and Description |
---|---|
void |
addKeyProvider(KeyProvider provider) |
KeyResolver |
copy() |
KeyProvider[] |
getKeyProviders() |
boolean |
removeKeyProvider(KeyProvider provider) |
KeyResult |
resolveKey(KeyPurpose purpose,
String algorithm,
KeyInfo keyInfo) |
protected static final KeyResolver.Accessor BY_ALG_AND_PURPOSE
protected static final KeyResolver.Accessor BY_TOKEN_REFERENCE
protected static final KeyResolver.Accessor BY_X509_DATA
protected static final KeyResolver.Accessor BY_KEY_NAME
public KeyResolver copy()
public void addKeyProvider(KeyProvider provider)
public boolean removeKeyProvider(KeyProvider provider)
public KeyProvider[] getKeyProviders()
public KeyResult resolveKey(KeyPurpose purpose, String algorithm, KeyInfo keyInfo) throws KeyResolverException
KeyResolverException