@ExperimentalApi
public class AuthenticatedWebResourceProvider
extends java.lang.Object
WebResources for Remote API clients.
Clients should call setAuthContext(String, char[]) to set the active user before making remote requests,
and clearAuthContext() when the user authentication is no longer needed.| Constructor and Description |
|---|
AuthenticatedWebResourceProvider(com.sun.jersey.api.client.Client client,
java.lang.String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAuthContext()
Clears the current authenticated user, if any.
|
com.sun.jersey.api.client.WebResource |
newRestWebResource() |
void |
setAuthContext(java.lang.String username,
char[] password)
Authenticates a user to make remote requests with.
|
public AuthenticatedWebResourceProvider(com.sun.jersey.api.client.Client client,
java.lang.String baseUrl)
public com.sun.jersey.api.client.WebResource newRestWebResource()
public void setAuthContext(java.lang.String username,
char[] password)
username - the login username of the userpassword - the password of the userpublic void clearAuthContext()
Copyright © 2003-2014 Atlassian. All Rights Reserved.