Package net.shibboleth.idp.cas.protocol
Enum ProtocolError
- java.lang.Object
-
- java.lang.Enum<ProtocolError>
-
- net.shibboleth.idp.cas.protocol.ProtocolError
-
- All Implemented Interfaces:
Serializable,Comparable<ProtocolError>
public enum ProtocolError extends Enum<ProtocolError>
CAS protocol errors.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BrokenProxyChainOne or more proxy-granting tickets in proxy chain have expired.IllegalStateIllegal state error.InvalidTicketFormatTicket parameter provided but has invalid format.InvalidTicketTypeA valid ticket of an unsupported type was provided.ProtocolViolationGeneric protocol violation error.ProxyCallbackAuthenticationFailureProxy callback authentication failed.ProxyNotAuthorizedUnauthorized attempt to request proxy-granting ticket.RenewIncompatibleWithProxyUnsupported condition where a proxy ticket validation occurs with the renew flag set.ServiceMismatchValidating service does not match service to which ticket was issued.ServiceNotSpecifiedService parameter required but not specified.SessionExpiredIdP session that issued ticket has expired which invalidates ticket.SessionRetrievalErrorError retrieving IdP session.TicketCreationErrorError creating ticket.TicketExpiredTicket not found or expired.TicketNotFromRenewValidation specifies renew protocol flag but ticket was not issued from a forced authentication.TicketNotSpecifiedTicket parameter required but not specified.TicketRemovalErrorError removing ticket.TicketRetrievalErrorError retrieving ticket.
-
Field Summary
Fields Modifier and Type Field Description private StringerrorCodeError code.private StringerrorDetailCodeError detail code.
-
Constructor Summary
Constructors Modifier Constructor Description privateProtocolError(String code, String detailCode)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Eventevent(Object source)Creates a Spring webflow event whose ID is given byEnum.name()} and contains the following attributes: code detailCode The values of attributes correspond to fields of the same names.StringgetCode()Get the error code.StringgetDetailCode()Get the error detail code.static ProtocolErrorvalueOf(String name)Returns the enum constant of this type with the specified name.static ProtocolError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BrokenProxyChain
public static final ProtocolError BrokenProxyChain
One or more proxy-granting tickets in proxy chain have expired.
-
IllegalState
public static final ProtocolError IllegalState
Illegal state error.
-
InvalidTicketFormat
public static final ProtocolError InvalidTicketFormat
Ticket parameter provided but has invalid format.
-
InvalidTicketType
public static final ProtocolError InvalidTicketType
A valid ticket of an unsupported type was provided.
-
ProtocolViolation
public static final ProtocolError ProtocolViolation
Generic protocol violation error.
-
ProxyCallbackAuthenticationFailure
public static final ProtocolError ProxyCallbackAuthenticationFailure
Proxy callback authentication failed.
-
ProxyNotAuthorized
public static final ProtocolError ProxyNotAuthorized
Unauthorized attempt to request proxy-granting ticket.
-
RenewIncompatibleWithProxy
public static final ProtocolError RenewIncompatibleWithProxy
Unsupported condition where a proxy ticket validation occurs with the renew flag set.
-
ServiceNotSpecified
public static final ProtocolError ServiceNotSpecified
Service parameter required but not specified.
-
ServiceMismatch
public static final ProtocolError ServiceMismatch
Validating service does not match service to which ticket was issued.
-
SessionExpired
public static final ProtocolError SessionExpired
IdP session that issued ticket has expired which invalidates ticket.
-
SessionRetrievalError
public static final ProtocolError SessionRetrievalError
Error retrieving IdP session.
-
TicketNotSpecified
public static final ProtocolError TicketNotSpecified
Ticket parameter required but not specified.
-
TicketExpired
public static final ProtocolError TicketExpired
Ticket not found or expired.
-
TicketNotFromRenew
public static final ProtocolError TicketNotFromRenew
Validation specifies renew protocol flag but ticket was not issued from a forced authentication.
-
TicketCreationError
public static final ProtocolError TicketCreationError
Error creating ticket.
-
TicketRetrievalError
public static final ProtocolError TicketRetrievalError
Error retrieving ticket.
-
TicketRemovalError
public static final ProtocolError TicketRemovalError
Error removing ticket.
-
-
Method Detail
-
values
public static ProtocolError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProtocolError c : ProtocolError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
@Nonnull public String getCode()
Get the error code.- Returns:
- error code
-
getDetailCode
@Nonnull public String getDetailCode()
Get the error detail code.- Returns:
- detail error code
-
event
@Nonnull public Event event(@Nonnull Object source)
Creates a Spring webflow event whose ID is given byEnum.name()} and contains the following attributes:- code
- detailCode
- Parameters:
source- Event source.- Returns:
- Spring webflow event.
-
-