|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.security.keyinfo.provider.AbstractKeyInfoProvider
org.opensaml.xml.security.keyinfo.provider.KeyInfoReferenceProvider
public class KeyInfoReferenceProvider
Implementation of KeyInfoProvider which supports KeyInfoReference.
To prevent cycles, only a single reference step is permitted. Only same-document references are supported.
| Field Summary | |
|---|---|
private Logger |
log
Class logger. |
| Constructor Summary | |
|---|---|
KeyInfoReferenceProvider()
|
|
| Method Summary | |
|---|---|
protected KeyInfoReference |
getKeyInfoReference(XMLObject xmlObject)
Get the KeyInfoReference from the passed XML object. |
boolean |
handles(XMLObject keyInfoChild)
Evaluate whether the given provider should attempt to handle resolving a credential from the specified KeyInfo child. |
Collection<Credential> |
process(KeyInfoCredentialResolver resolver,
XMLObject keyInfoChild,
CriteriaSet criteriaSet,
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 |
|---|
buildCredentialContext, extractKeyValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Logger log
| Constructor Detail |
|---|
public KeyInfoReferenceProvider()
| Method Detail |
|---|
public boolean handles(XMLObject keyInfoChild)
true does not guarantee that a credential can or will be
extracted form the particular KeyInfo child, only that processing should be attempted.
keyInfoChild - the KeyInfo child object to consider
public Collection<Credential> process(KeyInfoCredentialResolver resolver,
XMLObject keyInfoChild,
CriteriaSet criteriaSet,
KeyInfoResolutionContext kiContext)
throws SecurityException
resolver - reference to a resolver which is calling the providerkeyInfoChild - the KeyInfo child being processedcriteriaSet - the credential criteria the credential must satisfykiContext - the resolution context, used for sharing state amongst resolvers and providers
SecurityException - if there is an error during credential resolution.
Note: failure to resolve a credential is not an error.protected KeyInfoReference getKeyInfoReference(XMLObject xmlObject)
xmlObject - an XML object, presumably a KeyInfoReference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||