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(JWK jwk, KeyInfoResolutionContext kiContext) Build a JWKCredential.protected JwksDatagetJwksData(XMLObject xmlObject) Get the JwksData from the passed XML object.booleanprotected JWKParse JWK from a string.Parse JWKs out of a string.protected JWKSetparseJWKSet(String input) Parse JWKSet from a string.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
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
InlineJwksProvider
public InlineJwksProvider()
-
-
Method Details
-
buildCredential
@Nonnull protected BasicJWKCredential buildCredential(@Nonnull JWK jwk, @Nonnull KeyInfoResolutionContext kiContext) Build a JWKCredential.- Parameters:
jwk- input JWKkiContext- KeyInfo context- Returns:
- the built credential
-
parseJWKs
Parse JWKs out of a string.- Parameters:
input- input string- Returns:
- parsed JWKs
-
parseJWKSet
Parse JWKSet from a string.- Parameters:
input- input string- Returns:
- parsed JWKSet
-
parseJWK
Parse JWK from a string.- Parameters:
input- input string- Returns:
- parsed JWK
-
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