public final class ResponseUtils extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
buildAuthenticationErrorResponse(com.holonplatform.auth.AuthenticationError error,
String realmName)
Build an authentication error response using given
AuthenticationError. |
static javax.ws.rs.core.Response |
buildAuthenticationErrorResponse(String[] schemes,
String errorCode,
String errorDescription,
int statusCode,
String realmName)
Build an authentication error response
|
public static javax.ws.rs.core.Response buildAuthenticationErrorResponse(com.holonplatform.auth.AuthenticationError error,
String realmName)
AuthenticationError.error - AuthenticationErrorrealmName - Optional realm namepublic static javax.ws.rs.core.Response buildAuthenticationErrorResponse(String[] schemes, String errorCode, String errorDescription, int statusCode, String realmName)
schemes - Optional allowed authentication schemeserrorCode - Optional error codeerrorDescription - Optional error descriptionstatusCode - HTTP status coderealmName - Optional realm nameCopyright © 2019 The Holon Platform. All rights reserved.