net.officefloor.plugin.web.http.security
Class HttpSecurityWorkSource

java.lang.Object
  extended by net.officefloor.compile.spi.work.source.impl.AbstractWorkSource<HttpSecurityWork>
      extended by net.officefloor.plugin.web.http.security.HttpSecurityWorkSource
All Implemented Interfaces:
WorkSource<HttpSecurityWork>

public class HttpSecurityWorkSource
extends AbstractWorkSource<HttpSecurityWork>

WorkSource for HttpSecurity.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.compile.spi.work.source.impl.AbstractWorkSource
AbstractWorkSource.SpecificationContext
 
Field Summary
static String PROPERTY_HTTP_SECURITY_SOURCE_KEY
          Name of Property providing the key to the HttpSecuritySource from the HttpSecurityConfigurator.
static String TASK_CHALLENGE
          Name of the HttpChallengeTask.
static String TASK_COMPLETE_APPLICATION_AUTHENTICATE
          Name of the CompleteApplicationHttpAuthenticateTask.
static String TASK_MANAGED_OBJECT_AUTHENTICATE
          Name of the ManagedObjectHttpAuthenticateTask.
static String TASK_MANAGED_OBJECT_LOGOUT
          Name of the ManagedObjectHttpLogoutTask.
static String TASK_START_APPLICATION_AUTHENTICATE
          Name of the StartApplicationHttpAuthenticateTask.
 
Constructor Summary
HttpSecurityWorkSource()
           
 
Method Summary
static Class<?> getCredentialsClass(HttpSecurityType<?,?,?,?> type)
          Obtains the credentials class for the HttpSecurityType.
protected  void loadSpecification(AbstractWorkSource.SpecificationContext context)
          Loads the WorkSourceSpecification.
 void sourceWork(WorkTypeBuilder<HttpSecurityWork> workTypeBuilder, WorkSourceContext context)
          Sources the WorkType by populating it via the input WorkTypeBuilder.
 
Methods inherited from class net.officefloor.compile.spi.work.source.impl.AbstractWorkSource
getSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_HTTP_SECURITY_SOURCE_KEY

public static final String PROPERTY_HTTP_SECURITY_SOURCE_KEY
Name of Property providing the key to the HttpSecuritySource from the HttpSecurityConfigurator.

See Also:
Constant Field Values

TASK_CHALLENGE

public static final String TASK_CHALLENGE
Name of the HttpChallengeTask.

See Also:
Constant Field Values

TASK_MANAGED_OBJECT_AUTHENTICATE

public static final String TASK_MANAGED_OBJECT_AUTHENTICATE
Name of the ManagedObjectHttpAuthenticateTask.

See Also:
Constant Field Values

TASK_MANAGED_OBJECT_LOGOUT

public static final String TASK_MANAGED_OBJECT_LOGOUT
Name of the ManagedObjectHttpLogoutTask.

See Also:
Constant Field Values

TASK_START_APPLICATION_AUTHENTICATE

public static final String TASK_START_APPLICATION_AUTHENTICATE
Name of the StartApplicationHttpAuthenticateTask.

See Also:
Constant Field Values

TASK_COMPLETE_APPLICATION_AUTHENTICATE

public static final String TASK_COMPLETE_APPLICATION_AUTHENTICATE
Name of the CompleteApplicationHttpAuthenticateTask.

See Also:
Constant Field Values
Constructor Detail

HttpSecurityWorkSource

public HttpSecurityWorkSource()
Method Detail

getCredentialsClass

public static Class<?> getCredentialsClass(HttpSecurityType<?,?,?,?> type)
Obtains the credentials class for the HttpSecurityType.

Parameters:
type - HttpSecurityType.
Returns:
Credentials class.

loadSpecification

protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
Description copied from class: AbstractWorkSource
Loads the WorkSourceSpecification.

Specified by:
loadSpecification in class AbstractWorkSource<HttpSecurityWork>
Parameters:
context - AbstractWorkSource.SpecificationContext.

sourceWork

public void sourceWork(WorkTypeBuilder<HttpSecurityWork> workTypeBuilder,
                       WorkSourceContext context)
                throws Exception
Description copied from interface: WorkSource
Sources the WorkType by populating it via the input WorkTypeBuilder.

Parameters:
workTypeBuilder - WorkTypeBuilder to be populated with the type definition of the Work.
context - WorkSourceContext to source details to populate the WorkTypeBuilder.
Throws:
Exception - If fails to populate the WorkTypeBuilder.


Copyright © 2005-2013. All Rights Reserved.