public class HttpAuthentication extends NoAuthentication
| Constructor and Description |
|---|
HttpAuthentication()
Creates a HttpAuthentication object.
|
HttpAuthentication(String username,
String password)
Creates a HttpAuthentication object with username and password.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.client.Client |
getClient(Map<String,Object> params)
Get a client object
|
String |
getPassword()
Get the
password. |
String |
getUsername()
Get the
username. |
void |
setPassword(String password)
Set the
password. |
void |
setUsername(String username)
Set the
username. |
newClientpublic HttpAuthentication()
Creates a HttpAuthentication object.
public javax.ws.rs.client.Client getClient(Map<String,Object> params)
getClient in interface AuthTypegetClient in class NoAuthenticationparams - Map object. Map for Jersey Client initialization.Client object.public void setPassword(String password)
Set the password.
password - a String object.Copyright © 2016 Oracle and/or its affiliates. All rights reserved.