public abstract class BaseApiController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTITY_PROVIDER_ATTRIBUTE
Attribute in the VerifyTokenResponse that contains the Identity Provider (its entityId)
|
| Constructor and Description |
|---|
BaseApiController() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getIdpEntityIdFromToken(javax.servlet.http.HttpServletRequest request) |
void |
handleGenericException(Exception ex,
javax.servlet.http.HttpServletResponse response) |
void |
handleSecurityException(Exception ex,
javax.servlet.http.HttpServletResponse response) |
protected void |
verifyScope(javax.servlet.http.HttpServletRequest request,
String scopeRequired) |
public static final String IDENTITY_PROVIDER_ATTRIBUTE
protected String getIdpEntityIdFromToken(javax.servlet.http.HttpServletRequest request)
protected void verifyScope(javax.servlet.http.HttpServletRequest request,
String scopeRequired)
@ExceptionHandler(value=ScopeVerificationException.class) public void handleSecurityException(Exception ex, javax.servlet.http.HttpServletResponse response) throws IOException
IOException@ExceptionHandler(value=java.lang.Exception.class) public void handleGenericException(Exception ex, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionCopyright © 2015 Pivotal Software, Inc.. All rights reserved.