Package org.opensaml.xmlsec.keyinfo.impl
Class KeyInfoResolutionContext
java.lang.Object
org.opensaml.xmlsec.keyinfo.impl.KeyInfoResolutionContext
Resolution context class that is used to supply state information to, and to share information
amongst,
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Key
Get the key currently known to be represented by the KeyInfo.private KeyInfo
The KeyInfo being processed.Key names which are known to be associated with the KeyInfo being processed.Extensible map of properties used to share state amongst providers and/or resolver logic.private final Collection<Credential>
This list provides KeyInfo resolvers and providers in a particular processing environment access to credentials that may have already been previously resolved. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Get the key currently known to be represented by the KeyInfo.Gets the KeyInfo being processed.The key names which are currently known.Get the extensible properties map.Get the set of credentials previously resolved.void
Set the key currently known to be represented by the KeyInfo.void
setKeyInfo
(KeyInfo newKeyInfo) Sets the KeyInfo being processed.
-
Field Details
-
keyInfo
The KeyInfo being processed. -
keyNames
Key names which are known to be associated with the KeyInfo being processed. These may have for example been extracted from KeyName elements present, or may have been inferred from the context in which the KeyInfo exists or is being used. -
key
Get the key currently known to be represented by the KeyInfo. -
resolvedCredentials
This list provides KeyInfo resolvers and providers in a particular processing environment access to credentials that may have already been previously resolved. -
properties
Extensible map of properties used to share state amongst providers and/or resolver logic.
-
-
Constructor Details
-
KeyInfoResolutionContext
public KeyInfoResolutionContext(@Nonnull @ParameterName(name="credentials") Collection<Credential> credentials) Constructor.- Parameters:
credentials
- a reference to the collection in which credentials previously resolved in a processing flow are being stored
-
-
Method Details
-
getKeyInfo
Gets the KeyInfo being processed.- Returns:
- Returns the keyInfo.
-
setKeyInfo
Sets the KeyInfo being processed.- Parameters:
newKeyInfo
- The keyInfo to set.
-
getKeyNames
The key names which are currently known. These key names should be those which are known to be associated with the key represented by the KeyInfo being processed. These may have for example been directly extracted from KeyName elements present, or may have been inferred from the context in which the KeyInfo exists or is being used.- Returns:
- the set of key names
-
getKey
Get the key currently known to be represented by the KeyInfo.- Returns:
- the key currently known to be represented by the KeyInfo or null if not currently known
-
setKey
Set the key currently known to be represented by the KeyInfo.- Parameters:
newKey
- the new Key
-
getResolvedCredentials
Get the set of credentials previously resolved.- Returns:
- Returns the keyValueCredential.
-
getProperties
Get the extensible properties map.- Returns:
- Returns the properties.
-