Class Authentication.HeaderInfo

  • Enclosing interface:
    Authentication

    public static class Authentication.HeaderInfo
    extends java.lang.Object
    Structure holding information about the WWW-Authenticate (or Proxy-Authenticate) header.
    • Constructor Summary

      Constructors 
      Constructor Description
      HeaderInfo​(org.eclipse.jetty.http.HttpHeader header, java.lang.String type, java.util.Map<java.lang.String,​java.lang.String> params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBase64()  
      org.eclipse.jetty.http.HttpHeader getHeader()  
      java.lang.String getParameter​(java.lang.String paramName)  
      java.util.Map<java.lang.String,​java.lang.String> getParameters()  
      java.lang.String getRealm()  
      java.lang.String getType()  
      • Methods inherited from class java.lang.Object

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

      • HeaderInfo

        public HeaderInfo​(org.eclipse.jetty.http.HttpHeader header,
                          java.lang.String type,
                          java.util.Map<java.lang.String,​java.lang.String> params)
                   throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getType

        public java.lang.String getType()
        Returns:
        the authentication type (for example "Basic" or "Digest")
      • getRealm

        public java.lang.String getRealm()
        Returns:
        the realm name or null if there is no realm parameter
      • getBase64

        public java.lang.String getBase64()
        Returns:
        the base64 content as a string if it exists otherwise null
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.String> getParameters()
        Returns:
        additional authentication parameters
      • getParameter

        public java.lang.String getParameter​(java.lang.String paramName)
        Returns:
        specified authentication parameter or null if does not exist
      • getHeader

        public org.eclipse.jetty.http.HttpHeader getHeader()
        Returns:
        the Authorization (or Proxy-Authorization) header