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.RuntimeExceptionEscalationindicating authentication is required.This may be thrown by any functionality as the
WebArchitectis expected to catch thisEscalationat theOfficelevel 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.StringgetRequiredHttpSecurityName()Obtains the requiredHttpSecurityname.
-
-
-
Constructor Detail
-
AuthenticationRequiredException
public AuthenticationRequiredException()
Initiate for anyHttpSecurity.
-
AuthenticationRequiredException
public AuthenticationRequiredException(java.lang.String requiredHttpSecurityName)
Initiate for a specificHttpSecurity.- Parameters:
requiredHttpSecurityName- Name of the specificHttpSecurityrequired. May benullto indicate any configuredHttpSecurity.
-
-
Method Detail
-
getRequiredHttpSecurityName
public java.lang.String getRequiredHttpSecurityName()
Obtains the requiredHttpSecurityname.- Returns:
- Required
HttpSecurityname ornullif anyHttpSecurity.
-
-