Class UsernamePasswordCredentialsSource

java.lang.Object
org.kuali.rice.ksb.security.credentials.UsernamePasswordCredentialsSource
All Implemented Interfaces:
org.kuali.rice.core.api.security.credentials.CredentialsSource

public final class UsernamePasswordCredentialsSource extends Object implements org.kuali.rice.core.api.security.credentials.CredentialsSource
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.

Since:
0.9
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • UsernamePasswordCredentialsSource

      public UsernamePasswordCredentialsSource(String username, String password)
      Constructor that accepts the username and password for which to construct UsernamePasswordAuthenticationToken's from.
      Parameters:
      username - the username.
      password - the password.
  • Method Details

    • getCredentials

      public org.kuali.rice.core.api.security.credentials.Credentials getCredentials(String serviceEndpoint)
      Specified by:
      getCredentials in interface org.kuali.rice.core.api.security.credentials.CredentialsSource
    • getSupportedCredentialsType

      public org.kuali.rice.core.api.security.credentials.CredentialsType getSupportedCredentialsType()
      Specified by:
      getSupportedCredentialsType in interface org.kuali.rice.core.api.security.credentials.CredentialsSource