org.kuali.rice.core.security.credentials
Interface CredentialsSource

All Known Implementing Classes:
CasProxyTicketCredentialsSource, UsernamePasswordCredentialsSource, X509CredentialsSource

public interface CredentialsSource

Inteface for abstracting out how we obtain credentials to access secure applications across the bus.

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

Nested Class Summary
static class CredentialsSource.CredentialsType
          Defines the types of Credentials that the system is willing to accept.
 
Method Summary
 Credentials getCredentials(String serviceEndpoint)
          Returns the SecurityContext which should have the proper credentials to give to any system requiring credentials.
 CredentialsSource.CredentialsType getSupportedCredentialsType()
          Returns the supported CredentialsType.
 

Method Detail

getSupportedCredentialsType

CredentialsSource.CredentialsType getSupportedCredentialsType()
Returns the supported CredentialsType. This should never be null.

Returns:
the supported credentials type.

getCredentials

Credentials getCredentials(String serviceEndpoint)
Returns the SecurityContext which should have the proper credentials to give to any system requiring credentials. This class has no guarantees what a user will do with the credentials and should thus always return a thread-safe version.

Parameters:
serviceDefinition - The Service Definition for which we want credentials for.
Returns:
the credentials, or null if credentials could not be obtained.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.