Package org.codice.ddf.security.handler
Class HandlerResultImpl
java.lang.Object
org.codice.ddf.security.handler.HandlerResultImpl
- All Implemented Interfaces:
org.codice.ddf.security.handler.api.HandlerResult
public class HandlerResultImpl
extends Object
implements org.codice.ddf.security.handler.api.HandlerResult
Encapsulates the return status for each handler. Consists of the status of any action taken by
the handler (successfully retrieved desired tokens, responded to a client in order to obtain
missing tokens, or no action taken), as well as the actual tokens retrieved from the header.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codice.ddf.security.handler.api.HandlerResult
org.codice.ddf.security.handler.api.HandlerResult.Status -
Constructor Summary
ConstructorsConstructorDescriptionHandlerResultImpl(org.codice.ddf.security.handler.api.HandlerResult.Status fs, BaseAuthenticationToken t) -
Method Summary
Modifier and TypeMethodDescriptionorg.codice.ddf.security.handler.api.HandlerResult.Statusorg.apache.shiro.authc.AuthenticationTokengetToken()voidvoidsetStatus(org.codice.ddf.security.handler.api.HandlerResult.Status status) voidsetToken(org.apache.shiro.authc.AuthenticationToken token) toString()
-
Constructor Details
-
HandlerResultImpl
public HandlerResultImpl() -
HandlerResultImpl
public HandlerResultImpl(org.codice.ddf.security.handler.api.HandlerResult.Status fs, BaseAuthenticationToken t)
-
-
Method Details
-
getStatus
public org.codice.ddf.security.handler.api.HandlerResult.Status getStatus()- Specified by:
getStatusin interfaceorg.codice.ddf.security.handler.api.HandlerResult
-
setStatus
public void setStatus(org.codice.ddf.security.handler.api.HandlerResult.Status status) - Specified by:
setStatusin interfaceorg.codice.ddf.security.handler.api.HandlerResult
-
getToken
public org.apache.shiro.authc.AuthenticationToken getToken()- Specified by:
getTokenin interfaceorg.codice.ddf.security.handler.api.HandlerResult
-
setToken
public void setToken(org.apache.shiro.authc.AuthenticationToken token) - Specified by:
setTokenin interfaceorg.codice.ddf.security.handler.api.HandlerResult
-
getSource
- Specified by:
getSourcein interfaceorg.codice.ddf.security.handler.api.HandlerResult
-
setSource
- Specified by:
setSourcein interfaceorg.codice.ddf.security.handler.api.HandlerResult
-
toString
-