|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.auth.BaseAuthenticationRequest
public class BaseAuthenticationRequest
Base class representing the details from an HTTP request to be used for authenticating a subscriber.
| Field Summary | |
|---|---|
static String |
APP_ID_ERROR_FIELD
Field which will always appear in exceptions thrown relating to the push application id. |
protected String |
pushApplicationId
The id of the push application a user is attempting to authenticate for. |
protected String |
username
The username that will be used to authenticate a subscriber. |
static String |
USERNAME_ERROR_FIELD
Field which will always appear in exceptions thrown relating to the subscriber's username. |
| Constructor Summary | |
|---|---|
BaseAuthenticationRequest()
Constructs a base authentication request. |
|
BaseAuthenticationRequest(String pushApplicationId,
String username)
Constructs a base authentication request with the given push app id and username. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two base authentication requests are found to be equal and false otherwise. |
String |
getPushApplicationId()
Gets the current value of the push application id. |
String |
getUsername()
Gets the current username of a subscriber. |
int |
hashCode()
Returns a hashcode for this base authentication request. |
void |
setPushApplicationId(String pushApplicationId)
Sets the push application id. |
void |
setUsername(String username)
Sets the subscriber's username. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String APP_ID_ERROR_FIELD
public static final String USERNAME_ERROR_FIELD
protected String pushApplicationId
protected String username
| Constructor Detail |
|---|
public BaseAuthenticationRequest()
public BaseAuthenticationRequest(String pushApplicationId,
String username)
pushApplicationId - the push application idusername - the username of a subscriber| Method Detail |
|---|
public String getPushApplicationId()
public void setPushApplicationId(String pushApplicationId)
pushApplicationId - the push application idpublic String getUsername()
public void setUsername(String username)
username - the username that will be used to authenticate a subscriberpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||