Package org.kuali.rice.ksb.service.impl
Class BasicAuthenticationServiceImpl
java.lang.Object
org.kuali.rice.ksb.service.impl.BasicAuthenticationServiceImpl
- All Implemented Interfaces:
BasicAuthenticationService
Implements the BasicAuthenticationService
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs BasicAuthenticationServiceImpl with a serviceCredentialsMap and a connectionCredentialsMap -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckServiceAuthentication(String serviceNameSpaceURI, QName serviceName, String username, String password) Validates service authentication for the given serviceNameSpaceURI, serviceName, username and passwordgetConnectionCredentials(String serviceNameSpaceURI, String serviceName) Gets the connection credentials for the given serviceNameSpaceURI and serviceNamegetPasswordForService(String serviceNameSpaceURI, QName serviceName, String username) Gets the password for the given serviceNameSpaceURI, serviceName, usernamevoidRegisters the connection credentials of the servicevoidregisterServiceCredentials(BasicAuthenticationCredentials credentials) Registers the service credentials of the service
-
Constructor Details
-
BasicAuthenticationServiceImpl
public BasicAuthenticationServiceImpl()Constructs BasicAuthenticationServiceImpl with a serviceCredentialsMap and a connectionCredentialsMap
-
-
Method Details
-
checkServiceAuthentication
public boolean checkServiceAuthentication(String serviceNameSpaceURI, QName serviceName, String username, String password) Description copied from interface:BasicAuthenticationServiceValidates service authentication for the given serviceNameSpaceURI, serviceName, username and password- Specified by:
checkServiceAuthenticationin interfaceBasicAuthenticationService- Parameters:
serviceNameSpaceURI- the serviceNameSpaceURI of the serviceserviceName- the serviceName of the serviceusername- the username for the servicepassword- the password for the service- Returns:
- true if the service can be authenticated
-
getPasswordForService
Description copied from interface:BasicAuthenticationServiceGets the password for the given serviceNameSpaceURI, serviceName, username- Specified by:
getPasswordForServicein interfaceBasicAuthenticationService- Parameters:
serviceNameSpaceURI- the serviceNameSpaceURI of the serviceserviceName- the serviceName of the serviceusername- the username for the service- Returns:
- the password if the service is found
-
getConnectionCredentials
public BasicAuthenticationConnectionCredentials getConnectionCredentials(String serviceNameSpaceURI, String serviceName) Description copied from interface:BasicAuthenticationServiceGets the connection credentials for the given serviceNameSpaceURI and serviceName- Specified by:
getConnectionCredentialsin interfaceBasicAuthenticationService- Parameters:
serviceNameSpaceURI- the serviceNameSpaceURI of the serviceserviceName- the serviceName of the service- Returns:
- the BasicAuthenticationConnectionCredentials for the given serviceNameSpaceURI and serviceName
-
registerServiceCredentials
Description copied from interface:BasicAuthenticationServiceRegisters the service credentials of the service- Specified by:
registerServiceCredentialsin interfaceBasicAuthenticationService- Parameters:
credentials- the credentials for the service
-
registerConnectionCredentials
Description copied from interface:BasicAuthenticationServiceRegisters the connection credentials of the service- Specified by:
registerConnectionCredentialsin interfaceBasicAuthenticationService- Parameters:
credentials- the credentials for the service
-