public class KeyInfoResolutionContext extends Object
KeyInfoProvider
s.
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.
Constructor and Description |
---|
KeyInfoResolutionContext(Collection<Credential> credentials)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Key |
getKey()
Get the key currently known to be represented by the KeyInfo.
|
KeyInfo |
getKeyInfo()
Gets the KeyInfo being processed.
|
Set<String> |
getKeyNames()
The key names which are currently known.
|
Map<String,Object> |
getProperties()
Get the extensible properties map.
|
Collection<Credential> |
getResolvedCredentials()
Get the set of credentials previously resolved.
|
void |
setKey(Key newKey)
Set the key currently known to be represented by the KeyInfo.
|
void |
setKeyInfo(KeyInfo newKeyInfo)
Sets the KeyInfo being processed.
|
public KeyInfoResolutionContext(@Nonnull 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 Set<String> getKeyNames()
@Nullable public Key getKey()
public void setKey(@Nullable Key newKey)
newKey
- the new Key@Nonnull public Collection<Credential> getResolvedCredentials()
Copyright © 2016 JBoss by Red Hat. All rights reserved.