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

java.lang.Object
  extended by org.opensaml.xml.security.keyinfo.provider.AbstractKeyInfoProvider
All Implemented Interfaces:
KeyInfoProvider
Direct Known Subclasses:
DSAKeyValueProvider, InlineX509DataProvider, RSAKeyValueProvider

public abstract class AbstractKeyInfoProvider
extends Object
implements KeyInfoProvider

Abstract super class for KeyInfoProvider implementations.


Constructor Summary
AbstractKeyInfoProvider()
           
 
Method Summary
protected  KeyInfoCredentialContext buildCredentialContext(KeyInfoResolutionContext kiContext)
          Build a credential context based on the current KeyInfo context, for return in a resolved credential.
protected  Key extractKeyValue(Credential cred)
          Utility method to extract any key that might be present in the specified Credential.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.security.keyinfo.KeyInfoProvider
handles, process
 

Constructor Detail

AbstractKeyInfoProvider

public AbstractKeyInfoProvider()
Method Detail

extractKeyValue

protected Key extractKeyValue(Credential cred)
Utility method to extract any key that might be present in the specified Credential.

Parameters:
cred - the Credential to evaluate
Returns:
the Key contained in the credential, or null if it does not contain a key.

buildCredentialContext

protected KeyInfoCredentialContext buildCredentialContext(KeyInfoResolutionContext kiContext)
Build a credential context based on the current KeyInfo context, for return in a resolved credential.

Parameters:
kiContext - the current KeyInfo resolution context
Returns:
a new KeyInfo credential context


Copyright © 2006-2011 Internet2. All Rights Reserved.