commit | author | age
|
352436
|
1 |
package org.keycloak.protocol.cas.utils; |
MP |
2 |
|
|
3 |
import org.keycloak.protocol.cas.representations.CASErrorCode; |
|
4 |
|
|
5 |
import javax.ws.rs.WebApplicationException; |
|
6 |
import javax.ws.rs.core.Response; |
|
7 |
|
|
8 |
public class CASValidationException extends WebApplicationException { |
|
9 |
private final CASErrorCode error; |
|
10 |
private final String errorDescription; |
|
11 |
private final Response.Status status; |
|
12 |
|
|
13 |
public CASValidationException(CASErrorCode error, String errorDescription, Response.Status status) { |
|
14 |
this.error = error; |
|
15 |
this.errorDescription = errorDescription; |
|
16 |
this.status = status; |
|
17 |
} |
|
18 |
|
|
19 |
public CASErrorCode getError() { |
|
20 |
return error; |
|
21 |
} |
|
22 |
|
|
23 |
public String getErrorDescription() { |
|
24 |
return errorDescription; |
|
25 |
} |
|
26 |
|
|
27 |
public Response.Status getStatus() { |
|
28 |
return status; |
|
29 |
} |
|
30 |
} |