Class InlineJwksProvider
java.lang.Object
org.opensaml.xmlsec.keyinfo.impl.provider.AbstractKeyInfoProvider
net.shibboleth.oidc.metadata.keyinfo.ext.impl.provider.InlineJwksProvider
- All Implemented Interfaces:
KeyInfoProvider
Implementation of
KeyInfoProvider which provides basic support for
extracting a JWKCredential child of KeyInfo. The value is expected to be either a Base64-encoded value of
either a single JWK credential or a JSON array of JWK credentials.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicJWKCredentialbuildCredential(com.nimbusds.jose.jwk.JWK jwk, KeyInfoResolutionContext kiContext) protected JwksDatagetJwksData(XMLObject xmlObject) Get the JwksData from the passed XML object.booleanprotected com.nimbusds.jose.jwk.JWKprotected List<com.nimbusds.jose.jwk.JWK>protected com.nimbusds.jose.jwk.JWKSetparseJWKSet(String input) process(KeyInfoCredentialResolver resolver, XMLObject keyInfoChild, CriteriaSet criteriaSet, KeyInfoResolutionContext kiContext) Methods inherited from class org.opensaml.xmlsec.keyinfo.impl.provider.AbstractKeyInfoProvider
buildCredentialContext, extractKeyValue
-
Field Details
-
log
private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
InlineJwksProvider
public InlineJwksProvider()
-
-
Method Details
-
process
@Nullable public Collection<Credential> process(@Nonnull KeyInfoCredentialResolver resolver, @Nonnull XMLObject keyInfoChild, @Nullable CriteriaSet criteriaSet, @Nonnull KeyInfoResolutionContext kiContext) throws SecurityException - Throws:
SecurityException
-
buildCredential
@Nonnull protected BasicJWKCredential buildCredential(@Nonnull com.nimbusds.jose.jwk.JWK jwk, @Nonnull KeyInfoResolutionContext kiContext) -
parseJWKs
-
parseJWKSet
-
parseJWK
-
handles
-
getJwksData
Get the JwksData from the passed XML object.- Parameters:
xmlObject- an XML object, presumably aJwksData- Returns:
- the JwksData which was found, or null if none
-