Class JwksPublishSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.web.jwt.authority.jwks.JwksPublishSectionSource
-
- All Implemented Interfaces:
SectionSource
public class JwksPublishSectionSource extends AbstractSectionSource
JWKS publish
SectionSource.Publishes the
JwtValidateKeyinstances from theJwtAuthorityfor aJwksSectionSource(or other JWKS consumer) to consume.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINPUTName ofSectionInputto publish theJwtValidateKeyinstances.
-
Constructor Summary
Constructors Constructor Description JwksPublishSectionSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JwksKeyWriter<?>[]loadJwksKeyWriters(SourceContext context)Loads theJwksKeyWriterinstances.protected voidloadSpecification(AbstractSectionSource.SpecificationContext context)Loads theSectionSourceSpecification.voidsourceSection(SectionDesigner designer, SectionSourceContext context)Sources theOfficeSectionby constructing it via the inputSectionDesigner.static java.lang.StringwriteKey(java.security.Key key, JwksKeyWriter<?>[] keyWriters)Writes theKey.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Field Detail
-
INPUT
public static final java.lang.String INPUT
Name ofSectionInputto publish theJwtValidateKeyinstances.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadJwksKeyWriters
public static JwksKeyWriter<?>[] loadJwksKeyWriters(SourceContext context)
Loads theJwksKeyWriterinstances.- Parameters:
context-SourceContext.- Returns:
JwksKeyWriterinstances.
-
writeKey
public static java.lang.String writeKey(java.security.Key key, JwksKeyWriter<?>[] keyWriters) throws java.lang.ExceptionWrites theKey.- Parameters:
key-Key.keyWriters-JwksKeyWriterinstances.- Returns:
- Written
Keyornullif unable to write theKey. - Throws:
java.lang.Exception- If fails to write theKey.
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSourceSources theOfficeSectionby constructing it via the inputSectionDesigner.- Parameters:
designer-SectionDesignerto construct the structure of theOfficeSection.context-SectionSourceContextto source details to construct theOfficeSection.- Throws:
java.lang.Exception- If fails to construct theOfficeSection.
-
-