public class GridSecurityCredentials extends Object implements Externalizable
GridSecurityCredentialsProvider
which is specified on
client or node startup in configuration.
Getting credentials through GridSecurityCredentialsProvider
abstraction allows
users to provide custom implementations for storing user names and passwords in their
environment, possibly in encrypted format. Ignite comes with
GridSecurityCredentialsBasicProvider
which simply provides
the passed in login
and password
when encryption or custom logic is not required.
In addition to login
and password
, security credentials allow for
specifying userObject
as well, which can be used
to pass in any additional information required for authentication.
Constructor and Description |
---|
GridSecurityCredentials()
Empty constructor required by
Externalizable . |
GridSecurityCredentials(String login,
String password)
Constructs security credentials based on
login and password . |
GridSecurityCredentials(String login,
String password,
Object userObj)
Constructs security credentials based on
login , password ,
and custom user object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
getLogin()
Gets login.
|
Object |
getPassword()
Gets password.
|
Object |
getUserObject()
Gets user-specific object.
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
setLogin(Object login)
Sets login.
|
void |
setPassword(Object password)
Sets password.
|
void |
setUserObject(Object userObj)
Sets user-specific object.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GridSecurityCredentials()
Externalizable
.public GridSecurityCredentials(String login, String password)
login
and password
.login
- Login.password
- Password.public Object getLogin()
public void setLogin(Object login)
login
- Login.public Object getPassword()
public void setPassword(Object password)
password
- Password.@Nullable public Object getUserObject()
public void setUserObject(@Nullable Object userObj)
userObj
- User object.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015