Package net.officefloor.web.security
Class AuthenticationRequiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.officefloor.web.security.AuthenticationRequiredException
-
- All Implemented Interfaces:
java.io.Serializable
public class AuthenticationRequiredException extends java.lang.RuntimeException
Escalation
indicating authentication is required.This may be thrown by any functionality as the
WebArchitect
is expected to catch thisEscalation
at theOffice
level and issue a challenge to the client.- Author:
- Daniel Sagenschneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationRequiredException()
Initiate for anyHttpSecurity
.AuthenticationRequiredException(java.lang.String requiredHttpSecurityName)
Initiate for a specificHttpSecurity
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRequiredHttpSecurityName()
Obtains the requiredHttpSecurity
name.
-
-
-
Constructor Detail
-
AuthenticationRequiredException
public AuthenticationRequiredException()
Initiate for anyHttpSecurity
.
-
AuthenticationRequiredException
public AuthenticationRequiredException(java.lang.String requiredHttpSecurityName)
Initiate for a specificHttpSecurity
.- Parameters:
requiredHttpSecurityName
- Name of the specificHttpSecurity
required. May benull
to indicate any configuredHttpSecurity
.
-
-
Method Detail
-
getRequiredHttpSecurityName
public java.lang.String getRequiredHttpSecurityName()
Obtains the requiredHttpSecurity
name.- Returns:
- Required
HttpSecurity
name ornull
if anyHttpSecurity
.
-
-