public class DEREncodedKeyValueProvider extends AbstractKeyInfoProvider
KeyInfoProvider
which supports DEREncodedKeyValue
.Constructor and Description |
---|
DEREncodedKeyValueProvider() |
Modifier and Type | Method and Description |
---|---|
protected DEREncodedKeyValue |
getDEREncodedKeyValue(XMLObject xmlObject)
Get the DEREncodedKeyValue 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.
|
buildCredentialContext, extractKeyValue
public boolean handles(@Nonnull 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@Nullable public Collection<Credential> process(@Nonnull KeyInfoCredentialResolver resolver, @Nonnull XMLObject keyInfoChild, @Nullable CriteriaSet criteriaSet, @Nonnull 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 providersSecurityException
- if there is an error during credential resolution.
Note: failure to resolve a credential is not an error.@Nullable protected DEREncodedKeyValue getDEREncodedKeyValue(@Nonnull XMLObject xmlObject)
xmlObject
- an XML object, presumably a DEREncodedKeyValue
Copyright © 2016 JBoss by Red Hat. All rights reserved.