public class Authorization extends Object
Constructor and Description |
---|
Authorization(Authentication authentication,
boolean granted) |
Modifier and Type | Method and Description |
---|---|
void |
attachHeaders(javax.servlet.http.HttpServletResponse response) |
static Authorization |
denied(Authentication authentication) |
Authorization |
forApplication(String application) |
String |
getApplication() |
Authentication |
getAuthentication() |
static Authorization |
granted(Authentication authentication) |
static Authorization |
grantedUnlessNull(Authentication authentication) |
boolean |
isAuthenticated() |
boolean |
isGranted() |
public Authorization(Authentication authentication, boolean granted)
public Authentication getAuthentication()
public boolean isGranted()
public Authorization forApplication(String application)
public void attachHeaders(javax.servlet.http.HttpServletResponse response)
public boolean isAuthenticated()
public String getApplication()
public static Authorization granted(Authentication authentication)
public static Authorization denied(Authentication authentication)
public static Authorization grantedUnlessNull(Authentication authentication)
Copyright © 2017. All rights reserved.