Class Authenticator.Context

  • Enclosing class:
    Authenticator

    public static final class Authenticator.Context
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Context​(java.lang.String username, java.lang.String password, HttpRequest httpRequest, javax.servlet.http.HttpServletRequest request)
      This class is not meant to be instantiated by plugins, except for tests.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      HttpRequest getHttpRequest()  
      java.lang.String getPassword()
      Password can be null, for example when using CAS.
      javax.servlet.http.HttpServletRequest getRequest()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 9.16.
      java.lang.String getUsername()
      Username can be null, for example when using CAS.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Context

        public Context​(@Nullable
                       java.lang.String username,
                       @Nullable
                       java.lang.String password,
                       HttpRequest httpRequest,
                       javax.servlet.http.HttpServletRequest request)
        This class is not meant to be instantiated by plugins, except for tests.
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Username can be null, for example when using CAS.
      • getPassword

        public java.lang.String getPassword()
        Password can be null, for example when using CAS.
      • getRequest

        @Deprecated(since="9.16",
                    forRemoval=true)
        public javax.servlet.http.HttpServletRequest getRequest()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 9.16. Use getHttpRequest() instead.
      • getHttpRequest

        public HttpRequest getHttpRequest()
        Since:
        9.16