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.
  • 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:
      getStatus in interface org.codice.ddf.security.handler.api.HandlerResult
    • setStatus

      public void setStatus(org.codice.ddf.security.handler.api.HandlerResult.Status status)
      Specified by:
      setStatus in interface org.codice.ddf.security.handler.api.HandlerResult
    • getToken

      public org.apache.shiro.authc.AuthenticationToken getToken()
      Specified by:
      getToken in interface org.codice.ddf.security.handler.api.HandlerResult
    • setToken

      public void setToken(org.apache.shiro.authc.AuthenticationToken token)
      Specified by:
      setToken in interface org.codice.ddf.security.handler.api.HandlerResult
    • getSource

      public String getSource()
      Specified by:
      getSource in interface org.codice.ddf.security.handler.api.HandlerResult
    • setSource

      public void setSource(String src)
      Specified by:
      setSource in interface org.codice.ddf.security.handler.api.HandlerResult
    • toString

      public String toString()
      Overrides:
      toString in class Object