The Diffusion Publisher API is deprecated and will be removed in a future release.
@Deprecated public final class Credentials extends Object
This object remains only for backwards compatibility with
ClientListener
notifications where the username is the client
principal and the password is always null.
Constructor and Description |
---|
Credentials()
Deprecated.
since 6.2
This constructor will be removed in a future release. |
Credentials(String principal)
Deprecated.
Create a Credentials object for the specified principal.
|
Credentials(String username,
String password)
Deprecated.
since 6.2
This constructor will be removed in a future release. |
Modifier and Type | Method and Description |
---|---|
Object |
attach(Object attachment)
Deprecated.
since 6.2
Credentials attachments no longer serve any purpose. This method will be removed in a future release. |
Object |
attachment()
Deprecated.
since 6.2
Credentials attachments no longer serve any purpose. This method will be removed in a future release. |
String |
getPassword()
Deprecated.
since 6.2
This will always return null unless explicitly set using
|
String |
getUsername()
Deprecated.
Returns the user name.
|
void |
setPassword(String password)
Deprecated.
since 6.2
Mutating this object no longer serves any purpose. This method will be removed in a future release. |
void |
setUsername(String username)
Deprecated.
since 6.2
Mutating this object no longer serves any purpose. This method will be removed in a future release. |
String |
toString()
Deprecated.
|
@Deprecated public Credentials()
This constructor will be removed in a future release.
@Deprecated public Credentials(String username, String password)
This constructor will be removed in a future release.
username
- User Namepassword
- Passwordpublic Credentials(String principal)
principal
- the principal@Deprecated public Object attach(Object attachment)
Credentials attachments no longer serve any purpose. This method will be removed in a future release.
attachment
- The object to be attached; may be null@Deprecated public Object attachment()
Credentials attachments no longer serve any purpose. This method will be removed in a future release.
public String getUsername()
@Deprecated public String getPassword()
This will always return null unless explicitly set using
setPassword(java.lang.String)
. This method will be removed in a future
release.
@Deprecated public void setUsername(String username)
Mutating this object no longer serves any purpose. This method will be removed in a future release.
username
- the user name@Deprecated public void setPassword(String password)
Mutating this object no longer serves any purpose. This method will be removed in a future release.
password
- the passwordCopyright © 2020 Push Technology Ltd. All Rights Reserved.