/** * @deprecated Use {@link #authenticate(UsernamePasswordCredentials, String)} * * Returns a basic <tt>Authorization</tt> header value for the given * {@link UsernamePasswordCredentials}. * * @param credentials The credentials to encode. * * @return a basic authorization string */ public static String authenticate(UsernamePasswordCredentials credentials) { return authenticate(credentials, "ISO-8859-1"); }
/** * Produces basic authorization string for the given set of * {@link Credentials}. * * @param credentials The set of credentials to be used for athentication * @param method Method name is ignored by the basic authentication scheme * @param uri URI is ignored by the basic authentication scheme * @throws InvalidCredentialsException if authentication credentials * are not valid or not applicable for this authentication scheme * @throws AuthenticationException if authorization string cannot * be generated due to an authentication failure * * @return a basic authorization string * * @deprecated Use {@link #authenticate(Credentials, HttpMethod)} */ public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException { LOG.trace("enter BasicScheme.authenticate(Credentials, String, String)"); UsernamePasswordCredentials usernamepassword = null; try { usernamepassword = (UsernamePasswordCredentials) credentials; } catch (ClassCastException e) { throw new InvalidCredentialsException( "Credentials cannot be used for basic authentication: " + credentials.getClass().getName()); } return BasicScheme.authenticate(usernamepassword); }
+ credentials.getClass().getName()); return BasicScheme.authenticate( usernamepassword, method.getParams().getCredentialCharset());
+ credentials.toString()); String auth = BasicScheme.authenticate( (UsernamePasswordCredentials) credentials, method.getParams().getCredentialCharset());
/** * @deprecated Use {@link #authenticate(UsernamePasswordCredentials, String)} * * Returns a basic <tt>Authorization</tt> header value for the given * {@link UsernamePasswordCredentials}. * * @param credentials The credentials to encode. * * @return a basic authorization string */ public static String authenticate(UsernamePasswordCredentials credentials) { return authenticate(credentials, "ISO-8859-1"); }
/** * @deprecated Use {@link #authenticate(UsernamePasswordCredentials, String)} * * Returns a basic <tt>Authorization</tt> header value for the given * {@link UsernamePasswordCredentials}. * * @param credentials The credentials to encode. * * @return a basic authorization string */ public static String authenticate(UsernamePasswordCredentials credentials) { return authenticate(credentials, "ISO-8859-1"); }
/** * @deprecated Use {@link #authenticate(UsernamePasswordCredentials, String)} * * Returns a basic <tt>Authorization</tt> header value for the given * {@link UsernamePasswordCredentials}. * * @param credentials The credentials to encode. * * @return a basic authorization string */ public static String authenticate(UsernamePasswordCredentials credentials) { return authenticate(credentials, "ISO-8859-1"); }
/** * @deprecated Use {@link #authenticate(UsernamePasswordCredentials, String)} * * Returns a basic <tt>Authorization</tt> header value for the given * {@link UsernamePasswordCredentials}. * * @param credentials The credentials to encode. * * @return a basic authorization string */ public static String authenticate(UsernamePasswordCredentials credentials) { return authenticate(credentials, "ISO-8859-1"); }
/** * Produces basic authorization string for the given set of * {@link Credentials}. * * @param credentials The set of credentials to be used for athentication * @param method Method name is ignored by the basic authentication scheme * @param uri URI is ignored by the basic authentication scheme * @throws InvalidCredentialsException if authentication credentials * are not valid or not applicable for this authentication scheme * @throws AuthenticationException if authorization string cannot * be generated due to an authentication failure * * @return a basic authorization string * * @deprecated Use {@link #authenticate(Credentials, HttpMethod)} */ public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException { LOG.trace("enter BasicScheme.authenticate(Credentials, String, String)"); UsernamePasswordCredentials usernamepassword = null; try { usernamepassword = (UsernamePasswordCredentials) credentials; } catch (ClassCastException e) { throw new InvalidCredentialsException( "Credentials cannot be used for basic authentication: " + credentials.getClass().getName()); } return BasicScheme.authenticate(usernamepassword); }
/** * Produces basic authorization string for the given set of * {@link Credentials}. * * @param credentials The set of credentials to be used for athentication * @param method Method name is ignored by the basic authentication scheme * @param uri URI is ignored by the basic authentication scheme * @throws InvalidCredentialsException if authentication credentials * are not valid or not applicable for this authentication scheme * @throws AuthenticationException if authorization string cannot * be generated due to an authentication failure * * @return a basic authorization string * * @deprecated Use {@link #authenticate(Credentials, HttpMethod)} */ public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException { LOG.trace("enter BasicScheme.authenticate(Credentials, String, String)"); UsernamePasswordCredentials usernamepassword = null; try { usernamepassword = (UsernamePasswordCredentials) credentials; } catch (ClassCastException e) { throw new InvalidCredentialsException( "Credentials cannot be used for basic authentication: " + credentials.getClass().getName()); } return BasicScheme.authenticate(usernamepassword); }
/** * Produces basic authorization string for the given set of * {@link Credentials}. * * @param credentials The set of credentials to be used for athentication * @param method Method name is ignored by the basic authentication scheme * @param uri URI is ignored by the basic authentication scheme * @throws InvalidCredentialsException if authentication credentials * are not valid or not applicable for this authentication scheme * @throws AuthenticationException if authorization string cannot * be generated due to an authentication failure * * @return a basic authorization string * * @deprecated Use {@link #authenticate(Credentials, HttpMethod)} */ public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException { LOG.trace("enter BasicScheme.authenticate(Credentials, String, String)"); UsernamePasswordCredentials usernamepassword = null; try { usernamepassword = (UsernamePasswordCredentials) credentials; } catch (ClassCastException e) { throw new InvalidCredentialsException( "Credentials cannot be used for basic authentication: " + credentials.getClass().getName()); } return BasicScheme.authenticate(usernamepassword); }
/** * Produces basic authorization string for the given set of * {@link Credentials}. * * @param credentials The set of credentials to be used for athentication * @param method Method name is ignored by the basic authentication scheme * @param uri URI is ignored by the basic authentication scheme * @throws InvalidCredentialsException if authentication credentials * are not valid or not applicable for this authentication scheme * @throws AuthenticationException if authorization string cannot * be generated due to an authentication failure * * @return a basic authorization string * * @deprecated Use {@link #authenticate(Credentials, HttpMethod)} */ public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException { LOG.trace("enter BasicScheme.authenticate(Credentials, String, String)"); UsernamePasswordCredentials usernamepassword = null; try { usernamepassword = (UsernamePasswordCredentials) credentials; } catch (ClassCastException e) { throw new InvalidCredentialsException( "Credentials cannot be used for basic authentication: " + credentials.getClass().getName()); } return BasicScheme.authenticate(usernamepassword); }
+ credentials.getClass().getName()); return BasicScheme.authenticate( usernamepassword, method.getParams().getCredentialCharset());
+ credentials.getClass().getName()); return BasicScheme.authenticate( usernamepassword, method.getParams().getCredentialCharset());
+ credentials.getClass().getName()); return BasicScheme.authenticate( usernamepassword, method.getParams().getCredentialCharset());
+ credentials.getClass().getName()); return BasicScheme.authenticate( usernamepassword, method.getParams().getCredentialCharset());
+ credentials.toString()); String auth = BasicScheme.authenticate( (UsernamePasswordCredentials) credentials, method.getParams().getCredentialCharset());
+ credentials.toString()); String auth = BasicScheme.authenticate( (UsernamePasswordCredentials) credentials, method.getParams().getCredentialCharset());
+ credentials.toString()); String auth = BasicScheme.authenticate( (UsernamePasswordCredentials) credentials, method.getParams().getCredentialCharset());
+ credentials.toString()); String auth = BasicScheme.authenticate( (UsernamePasswordCredentials) credentials, method.getParams().getCredentialCharset());