Package net.officefloor.identity.google
Class GoogleIdTokenVerifierManagedObjectSource
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
-
- net.officefloor.identity.google.GoogleIdTokenVerifierManagedObjectSource
-
- All Implemented Interfaces:
ManagedObject
,ManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
public class GoogleIdTokenVerifierManagedObjectSource extends AbstractManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows> implements ManagedObject
ManagedObjectSource
for theGoogleIdTokenVerifier
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoogleIdTokenVerifierManagedObjectSource.ConfigureDependencies
static class
GoogleIdTokenVerifierManagedObjectSource.Flows
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_CLIENT_ID
Name ofProperty
for the Google client id.
-
Constructor Summary
Constructors Constructor Description GoogleIdTokenVerifierManagedObjectSource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManagedObject
getManagedObject()
Synchronously obtains theManagedObject
.java.lang.Object
getObject()
Obtains the object being managed.protected void
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,GoogleIdTokenVerifierManagedObjectSource.Flows> context)
Overridden to load meta-data.protected void
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.static void
setVerifyFactory(GoogleIdTokenVerifierFactory factory)
Specifies theGoogleIdTokenVerifierFactory
.void
start(ManagedObjectExecuteContext<GoogleIdTokenVerifierManagedObjectSource.Flows> context)
Called once afterManagedObjectSource.init(ManagedObjectSourceContext)
to indicate thisManagedObjectSource
should start execution.-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, stop
-
-
-
-
Field Detail
-
PROPERTY_CLIENT_ID
public static final java.lang.String PROPERTY_CLIENT_ID
Name ofProperty
for the Google client id.- See Also:
- Constant Field Values
-
-
Method Detail
-
setVerifyFactory
public static void setVerifyFactory(GoogleIdTokenVerifierFactory factory)
Specifies theGoogleIdTokenVerifierFactory
.- Parameters:
factory
-GoogleIdTokenVerifierFactory
.
-
loadSpecification
protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load specifications.- Specified by:
loadSpecification
in classAbstractAsyncManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
- Parameters:
context
- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,GoogleIdTokenVerifierManagedObjectSource.Flows> context) throws java.lang.Exception
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load meta-data.- Specified by:
loadMetaData
in classAbstractAsyncManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
- Parameters:
context
- Meta-data.- Throws:
java.lang.Exception
- If fails to load the meta-data.
-
start
public void start(ManagedObjectExecuteContext<GoogleIdTokenVerifierManagedObjectSource.Flows> context) throws java.lang.Exception
Description copied from interface:ManagedObjectSource
Called once after
ManagedObjectSource.init(ManagedObjectSourceContext)
to indicate thisManagedObjectSource
should start execution.On invocation of this method,
ProcessState
instances may be invoked via theManagedObjectExecuteContext
.- Specified by:
start
in interfaceManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
- Overrides:
start
in classAbstractAsyncManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
- Parameters:
context
-ManagedObjectExecuteContext
to use in starting thisManagedObjectSource
.- Throws:
java.lang.Exception
- Should theManagedObjectSource
fail to start execution.
-
getManagedObject
protected ManagedObject getManagedObject() throws java.lang.Throwable
Description copied from class:AbstractManagedObjectSource
Synchronously obtains theManagedObject
.- Specified by:
getManagedObject
in classAbstractManagedObjectSource<None,GoogleIdTokenVerifierManagedObjectSource.Flows>
- Returns:
ManagedObject
.- Throws:
java.lang.Throwable
- If fails to obtain theManagedObject
.
-
getObject
public java.lang.Object getObject() throws java.lang.Throwable
Description copied from interface:ManagedObject
Obtains the object being managed.- Specified by:
getObject
in interfaceManagedObject
- Returns:
- Object being managed.
- Throws:
java.lang.Throwable
- Indicating failed to obtain the object for use.
-
-