Tabnine Logo
AuthScheme.getRealm
Code IndexAdd Tabnine to your IDE (free)

How to use
getRealm
method
in
org.apache.commons.httpclient.auth.AuthScheme

Best Java code snippets using org.apache.commons.httpclient.auth.AuthScheme.getRealm (Showing top 20 results out of 315)

origin: commons-httpclient/commons-httpclient

/**
 * Returns the authentication realm.
 * 
 * @return the name of the authentication realm
 */
public String getRealm() {
  if (this.authScheme != null) {
    return this.authScheme.getRealm();
  } else {
    return null;
  }
}

origin: commons-httpclient/commons-httpclient

  public String toString() {
    StringBuffer buffer = new StringBuffer();
    buffer.append("Auth state: auth requested [");
    buffer.append(this.authRequested);
    buffer.append("]; auth attempted [");
    buffer.append(this.authAttempted);
    if (this.authScheme != null) {
      buffer.append("]; auth scheme [");
      buffer.append(this.authScheme.getSchemeName());
      buffer.append("]; realm [");
      buffer.append(this.authScheme.getRealm());            
    }
    buffer.append("] preemptive [");
    buffer.append(this.preemptive);
    buffer.append("]");
    return buffer.toString();
  }
}
origin: commons-httpclient/commons-httpclient

String realm = authscheme.getRealm();
if (LOG.isDebugEnabled()) {
  StringBuffer buffer = new StringBuffer();
origin: commons-httpclient/commons-httpclient

authscheme.getRealm(), 
authscheme.getSchemeName());  
origin: commons-httpclient/commons-httpclient

AuthScope authscope = new AuthScope(
  host, port, 
  authscheme.getRealm(), 
  authscheme.getSchemeName());
origin: commons-httpclient/commons-httpclient

AuthScope authscope = new AuthScope(
  conn.getProxyHost(), conn.getProxyPort(), 
  authscheme.getRealm(), 
  authscheme.getSchemeName());  
if (LOG.isDebugEnabled()) {
origin: commons-httpclient/commons-httpclient

AuthScope authscope = new AuthScope(
  host, port, 
  authscheme.getRealm(), 
  authscheme.getSchemeName());  
if (LOG.isDebugEnabled()) {
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Returns the authentication realm.
 * 
 * @return the name of the authentication realm
 */
public String getRealm() {
  if (this.authScheme != null) {
    return this.authScheme.getRealm();
  } else {
    return null;
  }
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Returns the authentication realm.
 * 
 * @return the name of the authentication realm
 */
public String getRealm() {
  if (this.authScheme != null) {
    return this.authScheme.getRealm();
  } else {
    return null;
  }
}

origin: org.apache.commons/httpclient

/**
 * Returns the authentication realm.
 * 
 * @return the name of the authentication realm
 */
public String getRealm() {
  if (this.authScheme != null) {
    return this.authScheme.getRealm();
  } else {
    return null;
  }
}

origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Returns the authentication realm.
 * 
 * @return the name of the authentication realm
 */
public String getRealm() {
  if (this.authScheme != null) {
    return this.authScheme.getRealm();
  } else {
    return null;
  }
}

origin: org.jvnet.hudson/htmlunit

/**
 * Builds a key with the specified data.
 * @param scheme the scheme
 * @param host the server name
 * @param port the server port
 * @param proxy is proxy
 * @return the new key
 */
protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) {
  return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy;
}
origin: org.jenkins-ci/htmlunit

/**
 * Builds a key with the specified data.
 * @param scheme the scheme
 * @param host the server name
 * @param port the server port
 * @param proxy is proxy
 * @return the new key
 */
protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) {
  return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy;
}
origin: net.disy.htmlunit/htmlunit

/**
 * Builds a key with the specified data.
 * @param scheme the scheme
 * @param host the server name
 * @param port the server port
 * @param proxy is proxy
 * @return the new key
 */
protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) {
  return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

  public String toString() {
    StringBuffer buffer = new StringBuffer();
    buffer.append("Auth state: auth requested [");
    buffer.append(this.authRequested);
    buffer.append("]; auth attempted [");
    buffer.append(this.authAttempted);
    if (this.authScheme != null) {
      buffer.append("]; auth scheme [");
      buffer.append(this.authScheme.getSchemeName());
      buffer.append("]; realm [");
      buffer.append(this.authScheme.getRealm());            
    }
    buffer.append("] preemptive [");
    buffer.append(this.preemptive);
    buffer.append("]");
    return buffer.toString();
  }
}
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

  public String toString() {
    StringBuffer buffer = new StringBuffer();
    buffer.append("Auth state: auth requested [");
    buffer.append(this.authRequested);
    buffer.append("]; auth attempted [");
    buffer.append(this.authAttempted);
    if (this.authScheme != null) {
      buffer.append("]; auth scheme [");
      buffer.append(this.authScheme.getSchemeName());
      buffer.append("]; realm [");
      buffer.append(this.authScheme.getRealm());            
    }
    buffer.append("] preemptive [");
    buffer.append(this.preemptive);
    buffer.append("]");
    return buffer.toString();
  }
}
origin: org.jenkins-ci/htmlunit

/**
 * @param scheme the request scheme for which Credentials are asked
 * @param scope the configured authorization scope
 * @return <code>true</code> if the scope's realm matches the one of the scheme
 */
protected boolean matchRealm(final AuthScope scope, final AuthScheme scheme) {
  return scope.getRealm() == AuthScope.ANY_REALM || scope.getRealm().equals(scheme.getRealm());
}
origin: net.disy.htmlunit/htmlunit

/**
 * @param scheme the request scheme for which Credentials are asked
 * @param scope the configured authorization scope
 * @return <code>true</code> if the scope's realm matches the one of the scheme
 */
protected boolean matchRealm(final AuthScope scope, final AuthScheme scheme) {
  return scope.getRealm() == AuthScope.ANY_REALM || scope.getRealm().equals(scheme.getRealm());
}
origin: org.jvnet.hudson/htmlunit

/**
 * @param scheme the request scheme for which Credentials are asked
 * @param scope the configured authorization scope
 * @return <code>true</code> if the scope's realm matches the one of the scheme
 */
protected boolean matchRealm(final AuthScope scope, final AuthScheme scheme) {
  return scope.getRealm() == AuthScope.ANY_REALM || scope.getRealm().equals(scheme.getRealm());
}
origin: org.apache.ivy/ivy

  public Credentials getCredentials(AuthScheme scheme, String host, int port, boolean proxy)
      throws CredentialsNotAvailableException {
    String realm = scheme.getRealm();
    org.apache.ivy.util.Credentials c = CredentialsStore.INSTANCE.getCredentials(realm,
      host);
    if (c != null) {
      return createCredentials(c.getUserName(), c.getPasswd());
    }
    return null;
  }
}
org.apache.commons.httpclient.authAuthSchemegetRealm

Javadoc

Returns authentication realm. If the concept of an authentication realm is not applicable to the given authentication scheme, returns null.

Popular methods of AuthScheme

  • getSchemeName
    Returns textual designation of the given authentication scheme.
  • isComplete
    Authentication process may involve a series of challenge-response exchanges. This method tests if th
  • authenticate
    Produces an authorization string for the given set of Credentials.
  • isConnectionBased
    Tests if the authentication scheme is provides authorization on a per connection basis instead of us
  • processChallenge
    Processes the given challenge token. Some authentication schemes may involve multiple challenge-resp

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Permission (java.security)
    Legacy security code; do not use.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now