public class SecurityCredentials extends Object implements Externalizable
SecurityCredentialsProvider which is specified on
node startup in configuration.
Getting credentials through SecurityCredentialsProvider abstraction allows
users to provide custom implementations for storing user names and passwords in their
environment, possibly in encrypted format. Ignite comes with
SecurityCredentialsBasicProvider 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 |
|---|
SecurityCredentials()
Empty constructor required by
Externalizable. |
SecurityCredentials(String login,
String password)
Constructs security credentials based on
login and password. |
SecurityCredentials(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 SecurityCredentials()
Externalizable.public SecurityCredentials(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 ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016