org.opensaml.xml.security.keyinfo.provider
Class DSAKeyValueProvider

java.lang.Object
  extended by org.opensaml.xml.security.keyinfo.provider.AbstractKeyInfoProvider
      extended by org.opensaml.xml.security.keyinfo.provider.DSAKeyValueProvider
All Implemented Interfaces:
KeyInfoProvider

public class DSAKeyValueProvider
extends AbstractKeyInfoProvider

Implementation of KeyInfoProvider which supports DSAKeyValue.


Constructor Summary
DSAKeyValueProvider()
           
 
Method Summary
protected  DSAKeyValue getDSAKeyValue(XMLObject xmlObject)
          Get the DSAKeyValue from the passed XML object.
 boolean handles(XMLObject keyInfoChild)
          Evaluate whether the given provider can attempt to resolve a credential from the specified KeyInfo child.
 java.util.Collection<Credential> process(KeyInfoCredentialResolver resolver, XMLObject keyInfoChild, CredentialCriteriaSet criteriaSet, KeyInfoCredentialResolver.KeyInfoResolutionContext kiContext)
          Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.
 
Methods inherited from class org.opensaml.xml.security.keyinfo.provider.AbstractKeyInfoProvider
extractKeyValue, singletonSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAKeyValueProvider

public DSAKeyValueProvider()
Method Detail

handles

public boolean handles(XMLObject keyInfoChild)
Evaluate whether the given provider can attempt to resolve a credential from the specified KeyInfo child.

Parameters:
keyInfoChild - the KeyInfo child object to consider
Returns:
true if the provider an attempt to resolve, false otherwise

process

public java.util.Collection<Credential> process(KeyInfoCredentialResolver resolver,
                                                XMLObject keyInfoChild,
                                                CredentialCriteriaSet criteriaSet,
                                                KeyInfoCredentialResolver.KeyInfoResolutionContext kiContext)
                                         throws SecurityException
Process a specified KeyInfo child (XMLobject) and attempt to resolve a credential from it.

Parameters:
resolver - reference to the resolver which is calling the provider
keyInfoChild - the KeyInfo child being processed
criteriaSet - the credential criteria the credential must satisfy
kiContext - the resolution context, used for sharing state between the resolver and the providers
Returns:
a resolved Credential collection, or null
Throws:
SecurityException - if there is an error during credential resolution. Note: failure to resolve a credential is not an error.

getDSAKeyValue

protected DSAKeyValue getDSAKeyValue(XMLObject xmlObject)
Get the DSAKeyValue from the passed XML object.

Parameters:
xmlObject - an XML object, presumably either a KeyValue or an DSAKeyValue
Returns:
the DSAKeyValue which was found, or null if none