public class KeyResolver extends KeySelector
Modifier and Type | Class and Description |
---|---|
protected static interface |
KeyResolver.Accessor |
KeySelector.Purpose
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 |
static boolean |
VERBOSE |
static String |
VERBOSE_PROPERTY |
Modifier and Type | Method and Description |
---|---|
void |
addKeyProvider(KeyProvider provider) |
KeyResolver |
copy() |
protected ContextHandler |
getContextHandler(WSSecurityInfo securityInfo,
String name,
Object element) |
KeyProvider[] |
getKeyProviders() |
boolean |
removeKeyProvider(KeyProvider provider) |
KeySelectorResult |
select(KeyInfo keyInfo,
KeySelector.Purpose purpose,
AlgorithmMethod algorithmMethod,
XMLCryptoContext context) |
singletonKeySelector
public static final String VERBOSE_PROPERTY
public static final boolean VERBOSE
protected static final KeyResolver.Accessor BY_ALG_AND_PURPOSE
protected static final KeyResolver.Accessor BY_TOKEN_REFERENCE
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 KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod algorithmMethod, XMLCryptoContext context) throws KeySelectorException
select
in class KeySelector
KeySelectorException
protected ContextHandler getContextHandler(WSSecurityInfo securityInfo, String name, Object element)