org.opensaml.xml.security.keyinfo
Class KeyInfoCredentialResolver.KeyInfoResolutionContext

java.lang.Object
  extended by org.opensaml.xml.security.keyinfo.KeyInfoCredentialResolver.KeyInfoResolutionContext
Enclosing class:
KeyInfoCredentialResolver

public class KeyInfoCredentialResolver.KeyInfoResolutionContext
extends java.lang.Object

Resolution context class that can be used to supply information to the providers within a given invocation of the resolver.


Constructor Summary
KeyInfoCredentialResolver.KeyInfoResolutionContext(java.util.Collection<Credential> credentials)
          Constructor.
 
Method Summary
 KeyInfo getKeyInfo()
          Gets the KeyInfo being processed.
 java.util.List<java.lang.String> getKeyNames()
          Get the names obtained from any KeyNames.
 Credential getKeyValueCredential()
          Get the credential holding the key obtained from a KeyValue, if any.
 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 already resolved by other providers.
 void setKeyInfo(KeyInfo newKeyInfo)
          Sets the KeyInfo being processed.
 void setKeyNames(java.util.List<java.lang.String> keyNames)
          Set the names from any KeyNames.
 void setKeyValueCredential(Credential keyValueCredential)
          Set the credential holding the key obtained from a KeyValue, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyInfoCredentialResolver.KeyInfoResolutionContext

public KeyInfoCredentialResolver.KeyInfoResolutionContext(java.util.Collection<Credential> credentials)
Constructor.

Parameters:
credentials - a reference to the collection in which the KeyInfo credential resolver will store resolved credentials.
Method Detail

getKeyInfo

public KeyInfo getKeyInfo()
Gets the KeyInfo being processed.

Returns:
Returns the keyInfo.

setKeyInfo

public void setKeyInfo(KeyInfo newKeyInfo)
Sets the KeyInfo being processed.

Parameters:
newKeyInfo - The keyInfo to set.

getKeyNames

public java.util.List<java.lang.String> getKeyNames()
Get the names obtained from any KeyNames.

Returns:
Returns the keyNames.

setKeyNames

public void setKeyNames(java.util.List<java.lang.String> keyNames)
Set the names from any KeyNames.

Parameters:
keyNames - The KeyNames to set.

getKeyValueCredential

public Credential getKeyValueCredential()
Get the credential holding the key obtained from a KeyValue, if any.

Returns:
Returns the keyValueCredential.

getResolvedCredentials

public java.util.Collection<Credential> getResolvedCredentials()
Get the set of credentials already resolved by other providers.

Returns:
Returns the keyValueCredential.

setKeyValueCredential

public void setKeyValueCredential(Credential keyValueCredential)
Set the credential holding the key obtained from a KeyValue, if any.

Parameters:
keyValueCredential - The credential to set.

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Get the extensible properties map.

Returns:
Returns the properties.