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