Class DigestHttpSecuritySource
java.lang.Object
net.officefloor.web.spi.security.impl.AbstractHttpSecuritySource<HttpAuthentication<Void>,HttpAccessControl,Void,DigestHttpSecuritySource.Dependencies,None>
net.officefloor.web.security.scheme.DigestHttpSecuritySource
- All Implemented Interfaces:
HttpSecuritySource<HttpAuthentication<Void>,HttpAccessControl, Void, DigestHttpSecuritySource.Dependencies, None>
public class DigestHttpSecuritySource
extends AbstractHttpSecuritySource<HttpAuthentication<Void>,HttpAccessControl,Void,DigestHttpSecuritySource.Dependencies,None>
HttpSecuritySource for Digest HTTP security.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDependency keys.static classAllows mockingDigestHttpSecuritySource.SecurityStatefor testing.Nested classes/interfaces inherited from class net.officefloor.web.spi.security.impl.AbstractHttpSecuritySource
AbstractHttpSecuritySource.DependencyLabeller, AbstractHttpSecuritySource.Labeller, AbstractHttpSecuritySource.MetaDataContext<A,AC extends Serializable, C, O extends Enum<O>, F extends Enum<F>>, AbstractHttpSecuritySource.SpecificationContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuthentication scheme Digest.static final StringName of property for the private key.static final StringName of property for the realm.protected static final StringKey into theHttpSessionfor theDigestHttpSecuritySource.SecurityState.Fields inherited from class net.officefloor.web.spi.security.impl.AbstractHttpSecuritySource
UTF_8 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringObtains theopaqueseed for the challenge.protected StringObtains the time stamp.protected voidloadMetaData(AbstractHttpSecuritySource.MetaDataContext<HttpAuthentication<Void>, HttpAccessControl, Void, DigestHttpSecuritySource.Dependencies, None> context) Overridden to load meta-data.protected voidOverridden to load specifications.HttpSecurity<HttpAuthentication<Void>,HttpAccessControl, Void, DigestHttpSecuritySource.Dependencies, None> sourceHttpSecurity(HttpSecurityContext context) Sources theHttpSecurity.Methods inherited from class net.officefloor.web.spi.security.impl.AbstractHttpSecuritySource
getSpecification, init, start, stop
-
Field Details
-
AUTHENTICATION_SCHEME_DIGEST
Authentication scheme Digest.- See Also:
-
PROPERTY_REALM
Name of property for the realm.- See Also:
-
PROPERTY_PRIVATE_KEY
Name of property for the private key.- See Also:
-
SECURITY_STATE_SESSION_KEY
Key into theHttpSessionfor theDigestHttpSecuritySource.SecurityState.
-
-
Constructor Details
-
DigestHttpSecuritySource
public DigestHttpSecuritySource()
-
-
Method Details
-
getTimestamp
Obtains the time stamp.- Returns:
- Time stamp.
-
getOpaqueSeed
Obtains theopaqueseed for the challenge.- Returns:
opaqueseed.
-
loadSpecification
Description copied from class:AbstractHttpSecuritySourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractHttpSecuritySource<HttpAuthentication<Void>,HttpAccessControl, Void, DigestHttpSecuritySource.Dependencies, None> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractHttpSecuritySource.MetaDataContext<HttpAuthentication<Void>, HttpAccessControl, throws ExceptionVoid, DigestHttpSecuritySource.Dependencies, None> context) Description copied from class:AbstractHttpSecuritySourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractHttpSecuritySource<HttpAuthentication<Void>,HttpAccessControl, Void, DigestHttpSecuritySource.Dependencies, None> - Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
sourceHttpSecurity
public HttpSecurity<HttpAuthentication<Void>,HttpAccessControl, sourceHttpSecurityVoid, DigestHttpSecuritySource.Dependencies, None> (HttpSecurityContext context) throws HttpException Description copied from interface:HttpSecuritySourceSources theHttpSecurity.- Parameters:
context-HttpSecurity.- Returns:
HttpSecurity.- Throws:
HttpException- If fails to source theHttpSecurity.
-