Class NullHCCredentials

java.lang.Object
org.jboss.as.test.integration.security.common.NullHCCredentials
All Implemented Interfaces:
org.apache.http.auth.Credentials

public class NullHCCredentials extends Object implements org.apache.http.auth.Credentials
An empty Apache HTTPClient Credentials implementation, used for SPNEGO authentications.
Author:
Josef Cacek
  • Constructor Details

    • NullHCCredentials

      public NullHCCredentials()
  • Method Details

    • getUserPrincipal

      public Principal getUserPrincipal()
      Returns null as the Principal.
      Specified by:
      getUserPrincipal in interface org.apache.http.auth.Credentials
      Returns:
      See Also:
      • Credentials.getUserPrincipal()
    • getPassword

      public String getPassword()
      Returns null as the password.
      Specified by:
      getPassword in interface org.apache.http.auth.Credentials
      Returns:
      See Also:
      • Credentials.getPassword()