Class KerberosScheme

    • Constructor Detail

      • KerberosScheme

        public KerberosScheme​(boolean stripPort,
                              boolean useCanonicalHostname)
        Since:
        4.4
      • KerberosScheme

        public KerberosScheme​(boolean stripPort)
      • KerberosScheme

        public KerberosScheme()
    • Method Detail

      • getSchemeName

        public java.lang.String getSchemeName()
        Description copied from interface: AuthScheme
        Returns textual designation of the given authentication scheme.
        Returns:
        the name of the given authentication scheme
      • authenticate

        public org.apache.http.Header authenticate​(Credentials credentials,
                                                   org.apache.http.HttpRequest request,
                                                   org.apache.http.protocol.HttpContext context)
                                            throws AuthenticationException
        Produces KERBEROS authorization Header based on token created by processChallenge.
        Specified by:
        authenticate in interface ContextAwareAuthScheme
        Overrides:
        authenticate in class GGSSchemeBase
        Parameters:
        credentials - not used by the KERBEROS scheme.
        request - The request being authenticated
        context - HTTP context
        Returns:
        KERBEROS authentication Header
        Throws:
        AuthenticationException - if authentication string cannot be generated due to an authentication failure
      • generateToken

        protected byte[] generateToken​(byte[] input,
                                       java.lang.String authServer)
                                throws org.ietf.jgss.GSSException
        Overrides:
        generateToken in class GGSSchemeBase
        Throws:
        org.ietf.jgss.GSSException
      • generateToken

        protected byte[] generateToken​(byte[] input,
                                       java.lang.String authServer,
                                       Credentials credentials)
                                throws org.ietf.jgss.GSSException
        Overrides:
        generateToken in class GGSSchemeBase
        Throws:
        org.ietf.jgss.GSSException
      • getParameter

        public java.lang.String getParameter​(java.lang.String name)
        There are no valid parameters for KERBEROS authentication so this method always returns null.
        Parameters:
        name - The name of the parameter to be returned
        Returns:
        null
      • getRealm

        public java.lang.String getRealm()
        The concept of an authentication realm is not supported by the Negotiate authentication scheme. Always returns null.
        Returns:
        null
      • isConnectionBased

        public boolean isConnectionBased()
        Returns true. KERBEROS authentication scheme is connection based.
        Returns:
        true.