Class Authorization
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.filter.Authorization
-
public class Authorization extends java.lang.Object
- Author:
- nico.rehwaldt
-
-
Constructor Summary
Constructors Constructor Description Authorization(Authentication authentication, boolean granted)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachHeaders(javax.servlet.http.HttpServletResponse response)
static Authorization
denied(Authentication authentication)
Authorization
forApplication(java.lang.String application)
java.lang.String
getApplication()
Authentication
getAuthentication()
static Authorization
granted(Authentication authentication)
static Authorization
grantedUnlessNull(Authentication authentication)
boolean
isAuthenticated()
boolean
isGranted()
-
-
-
Constructor Detail
-
Authorization
public Authorization(Authentication authentication, boolean granted)
-
-
Method Detail
-
getAuthentication
public Authentication getAuthentication()
-
isGranted
public boolean isGranted()
-
forApplication
public Authorization forApplication(java.lang.String application)
-
attachHeaders
public void attachHeaders(javax.servlet.http.HttpServletResponse response)
-
isAuthenticated
public boolean isAuthenticated()
-
getApplication
public java.lang.String getApplication()
-
granted
public static Authorization granted(Authentication authentication)
-
denied
public static Authorization denied(Authentication authentication)
-
grantedUnlessNull
public static Authorization grantedUnlessNull(Authentication authentication)
-
-