|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.ksb.security.credentials.UsernamePasswordCredentialsSource
public final class UsernamePasswordCredentialsSource
Implementation of a CredentialsSource that contains a username and password.
Note that this implementation is for service-to-service authentication. It cannot handle user-to-service authentication.
Constructor Summary | |
---|---|
UsernamePasswordCredentialsSource(String username,
String password)
Constructor that accepts the username and password for which to construct UsernamePasswordAuthenticationToken's from. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UsernamePasswordCredentialsSource(String username, String password)
username
- the username.password
- the password.Method Detail |
---|
public Credentials getCredentials(String serviceEndpoint)
CredentialsSource
getCredentials
in interface CredentialsSource
public CredentialsType getSupportedCredentialsType()
CredentialsSource
getSupportedCredentialsType
in interface CredentialsSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |