public abstract class PasswordCredentials extends Object implements Credentials
Credentials implementation that may be used by an AuthenticationProvider
that provides password-based authentication. The built-in AuthenticationProvider requires that the
Credentials object passed be an instance of this class. If you implement a custom password-based
AuthenticationProvider, it is recommended that you accept instances of this class, but you are
not required to. If you accept instances of this class it allows switching to your implementation from
the built-in implementation without any changes in the calling code.
.| Constructor and Description |
|---|
PasswordCredentials() |
| Modifier and Type | Method and Description |
|---|---|
abstract char[] |
getPassword()
Returns the password contained in this credentials instance
|
static PasswordCredentials |
newInstance(char[] password) |
public abstract char[] getPassword()
public static PasswordCredentials newInstance(char[] password)
OACC is a Java Application Security Framework developed by Acciente, LLC., released under Apache License 2.0.
Copyright 2009-2017, Acciente, LLC.