public class KeyInfoResolutionContext
extends java.lang.Object
KeyInfoProviders.
The extensible properties map available from getProperties() may for example used to communicate
state between two or more providers, or between a provider and custom logic in a particular implementation
of KeyInfoCredentialResolver. It is recommended that providers and/or
resolvers define and use property names in such a way as to avoid collisions with those used by other providers
and resolvers, and to also clearly define the data type stored for each propery name.
| Modifier and Type | Field and Description |
|---|---|
private java.security.Key |
key
Get the key currently known to be represented by the KeyInfo.
|
private KeyInfo |
keyInfo
The KeyInfo being processed.
|
private java.util.Set<java.lang.String> |
keyNames
Key names which are known to be associated with the KeyInfo being processed.
|
private java.util.Map<java.lang.String,java.lang.Object> |
properties
Extensible map of properties used to share state amongst providers and/or resolver logic.
|
private java.util.Collection<Credential> |
resolvedCredentials
This list provides KeyInfo resolvers and providers in a particular processing
environment access to credentials that may have already been previously resolved.
|
| Constructor and Description |
|---|
KeyInfoResolutionContext(java.util.Collection<Credential> credentials)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.Key |
getKey()
Get the key currently known to be represented by the KeyInfo.
|
KeyInfo |
getKeyInfo()
Gets the KeyInfo being processed.
|
java.util.Set<java.lang.String> |
getKeyNames()
The key names which are currently known.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get the extensible properties map.
|
java.util.Collection<Credential> |
getResolvedCredentials()
Get the set of credentials previously resolved.
|
void |
setKey(java.security.Key newKey)
Set the key currently known to be represented by the KeyInfo.
|
void |
setKeyInfo(KeyInfo newKeyInfo)
Sets the KeyInfo being processed.
|
private KeyInfo keyInfo
private final java.util.Set<java.lang.String> keyNames
private java.security.Key key
private final java.util.Collection<Credential> resolvedCredentials
private final java.util.Map<java.lang.String,java.lang.Object> properties
public KeyInfoResolutionContext(@Nonnull
java.util.Collection<Credential> credentials)
credentials - a reference to the collection in which credentials previously
resolved in a processing flow are being stored@Nullable public KeyInfo getKeyInfo()
public void setKeyInfo(@Nullable
KeyInfo newKeyInfo)
newKeyInfo - The keyInfo to set.@Nonnull public java.util.Set<java.lang.String> getKeyNames()
@Nullable public java.security.Key getKey()
public void setKey(@Nullable
java.security.Key newKey)
newKey - the new Key@Nonnull public java.util.Collection<Credential> getResolvedCredentials()
@Nonnull public java.util.Map<java.lang.String,java.lang.Object> getProperties()