java.io.Serializable, oracle.kv.impl.util.FastExternalizable, LoginCredentialspublic class PasswordCredentials extends java.lang.Object implements oracle.kv.impl.util.FastExternalizable, LoginCredentials, java.io.Serializable
| Constructor | Description |
|---|---|
PasswordCredentials(java.lang.String username,
char[] password) |
Creates a username/password credential set.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Wipes out the password storage to ensure it does not hang around in the
Java VM memory space.
|
char[] |
getPassword() |
Gets the password.
|
java.lang.String |
getUsername() |
Identifies the user owning the credentials.
|
public PasswordCredentials(java.lang.String username,
char[] password)
throws java.lang.IllegalArgumentException
clear() method when you are done with the
object to avoid have the password being present in the Java memory heap.username - the name of the userpassword - the password of the userjava.lang.IllegalArgumentException - if either username or password
have null values.public java.lang.String getUsername()
LoginCredentialsgetUsername in interface LoginCredentialsLoginCredentials.getUsername()public char[] getPassword()
public void clear()
Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.