|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.auth.BaseAuthenticationRequest
net.rim.pushsdk.subscription.auth.AuthenticationRequest
public class AuthenticationRequest
Represents the details from an HTTP request to be used for authenticating a subscriber.
| Field Summary | |
|---|---|
protected String |
password
The password that will be used to authenticate a subscriber. |
static String |
PASSWORD_ERROR_FIELD
Field which will always appear in exceptions thrown relating to the subscriber's password. |
protected SubscriptionType |
subscriptionType
The type of subscription operation being performed. |
| Fields inherited from class net.rim.pushsdk.subscription.auth.BaseAuthenticationRequest |
|---|
APP_ID_ERROR_FIELD, pushApplicationId, username, USERNAME_ERROR_FIELD |
| Constructor Summary | |
|---|---|
AuthenticationRequest()
Constructs an authentication request. |
|
AuthenticationRequest(String pushApplicationId,
String username,
String password,
SubscriptionType subscriptionType)
Constructs an authentication request with the given application id, username, password, and subscription type. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two authentication requests are found to be equal and false otherwise. |
String |
getPassword()
Gets the current password of a subscriber. |
SubscriptionType |
getSubscriptionType()
Gets the current subscription operation type. |
int |
hashCode()
Returns a hashcode for this authentication request. |
void |
setPassword(String password)
Sets the subscriber's password. |
void |
setSubscriptionType(SubscriptionType subscriptionType)
Sets the subscription operation type. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class net.rim.pushsdk.subscription.auth.BaseAuthenticationRequest |
|---|
getPushApplicationId, getUsername, setPushApplicationId, setUsername |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PASSWORD_ERROR_FIELD
protected String password
protected SubscriptionType subscriptionType
| Constructor Detail |
|---|
public AuthenticationRequest()
public AuthenticationRequest(String pushApplicationId,
String username,
String password,
SubscriptionType subscriptionType)
pushApplicationId - the id of the push application a user is attempting to authenticate forusername - the username that will be used to authenticate a subscriberpassword - the password that will be used to authenticate a subscribersubscriptionType - the type of subscription operation being performed| Method Detail |
|---|
public String getPassword()
public void setPassword(String password)
password - the password that will be used to authenticate a subscriberpublic SubscriptionType getSubscriptionType()
SubscriptionTypepublic void setSubscriptionType(SubscriptionType subscriptionType)
subscriptionType - the type of subscription operation being performedSubscriptionTypepublic int hashCode()
hashCode in class BaseAuthenticationRequestpublic boolean equals(Object obj)
equals in class BaseAuthenticationRequestpublic String toString()
String with all attributes in name = value format.
toString in class BaseAuthenticationRequestString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||