public final class UsernamePasswordCredentialsSource extends Object implements CredentialsSource
Note that this implementation is for service-to-service authentication. It cannot handle user-to-service authentication.
Constructor and Description |
---|
UsernamePasswordCredentialsSource(String username,
String password)
Constructor that accepts the username and password for which to construct
UsernamePasswordAuthenticationToken's from.
|
Modifier and Type | Method and Description |
---|---|
Credentials |
getCredentials(String serviceEndpoint)
Returns the SecurityContext which should have the proper credentials to
give to any system requiring credentials.
|
CredentialsType |
getSupportedCredentialsType()
Returns the supported CredentialsType.
|
public UsernamePasswordCredentialsSource(String username, String password)
username
- the username.password
- the password.public Credentials getCredentials(String serviceEndpoint)
CredentialsSource
getCredentials
in interface CredentialsSource
public CredentialsType getSupportedCredentialsType()
CredentialsSource
getSupportedCredentialsType
in interface CredentialsSource
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.