Class NegotiateScheme

    • Constructor Detail

      • NegotiateScheme

        public NegotiateScheme​(SpnegoTokenGenerator spengoGenerator,
                               boolean stripPort)
        Deprecated.
        Default constructor for the Negotiate authentication scheme.
      • NegotiateScheme

        public NegotiateScheme()
        Deprecated.
    • Method Detail

      • getSchemeName

        public java.lang.String getSchemeName()
        Deprecated.
        Returns textual designation of the Negotiate authentication scheme.
        Returns:
        Negotiate
      • authenticate

        public Header authenticate​(Credentials credentials,
                                   HttpRequest request,
                                   HttpContext context)
                            throws AuthenticationException
        Deprecated.
        Produces Negotiate authorization Header based on token created by processChallenge.
        Specified by:
        authenticate in interface ContextAwareAuthScheme
        Overrides:
        authenticate in class GGSSchemeBase
        Parameters:
        credentials - Never used be the Negotiate scheme but must be provided to satisfy common-httpclient API. Credentials from JAAS will be used instead.
        request - The request being authenticated
        context - HTTP context
        Returns:
        an Negotiate authorisation Header
        Throws:
        AuthenticationException - if authorisation string cannot be generated due to an authentication failure
      • getParameter

        public java.lang.String getParameter​(java.lang.String name)
        Deprecated.
        Returns the authentication parameter with the given name, if available.

        There are no valid parameters for Negotiate authentication so this method always returns null.

        Parameters:
        name - The name of the parameter to be returned
        Returns:
        the parameter with the given name
      • getRealm

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

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