/** * 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; } }
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(); } }
String realm = authscheme.getRealm(); if (LOG.isDebugEnabled()) { StringBuffer buffer = new StringBuffer();
authscheme.getRealm(), authscheme.getSchemeName());
AuthScope authscope = new AuthScope( host, port, authscheme.getRealm(), authscheme.getSchemeName());
AuthScope authscope = new AuthScope( conn.getProxyHost(), conn.getProxyPort(), authscheme.getRealm(), authscheme.getSchemeName()); if (LOG.isDebugEnabled()) {
AuthScope authscope = new AuthScope( host, port, authscheme.getRealm(), authscheme.getSchemeName()); if (LOG.isDebugEnabled()) {
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; } }
/** * 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; }
/** * 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; }
/** * 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; }
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(); } }
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(); } }
/** * @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()); }
/** * @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()); }
/** * @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()); }
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; } }