Package org.kuali.rice.ksb.service
Class BasicAuthenticationCredentials
java.lang.Object
org.kuali.rice.ksb.service.BasicAuthenticationCredentials
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
BasicAuthenticationConnectionCredentials
public class BasicAuthenticationCredentials
extends Object
implements org.springframework.beans.factory.InitializingBean
Initializes authenticationService with user credentials.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister the service credentials for the serviceGets the BasicAuthenticationService to useGets the localServiceNameGets the passwordGets the serviceNameSpaceURIGets the usernamevoidsetAuthenticationService(BasicAuthenticationService authenticationService) Sets the authenticationServicevoidsetLocalServiceName(String localServiceName) Sets the localServiceNamevoidsetPassword(String password) Sets the passwordvoidsetServiceNameSpaceURI(String serviceNameSpaceURI) Sets the serviceNameSpaceURIvoidsetUsername(String username) Sets the usernameprotected booleanvalidate()Validates authenticationService, serviceNameSpaceURI, localServiceName, username, and password
-
Constructor Details
-
BasicAuthenticationCredentials
public BasicAuthenticationCredentials()
-
-
Method Details
-
afterPropertiesSet
Register the service credentials for the service- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception- See Also:
-
getAuthenticationService
Gets the BasicAuthenticationService to use- Returns:
- BasicAuthenticationService the BasicAuthenticationService
-
setAuthenticationService
Sets the authenticationService- Parameters:
authenticationService- the BasicAthenticationService to set
-
getServiceNameSpaceURI
Gets the serviceNameSpaceURI- Returns:
- String serviceNameSpaceURI of this BasicAuthenticationCredentials
-
setServiceNameSpaceURI
Sets the serviceNameSpaceURI- Parameters:
serviceNameSpaceURI- the serviceNameSpaceURI to set
-
getLocalServiceName
Gets the localServiceName- Returns:
- String localServiceName of this BasicAuthenticationCredentials
-
setLocalServiceName
Sets the localServiceName- Parameters:
localServiceName- the localServiceName to set
-
getUsername
Gets the username- Returns:
- username the username of this BasicAuthenticationCredentials
-
setUsername
Sets the username- Parameters:
username- the username to set
-
getPassword
Gets the password- Returns:
- password the password of this BasicAuthenticationCredentials
-
setPassword
Sets the password- Parameters:
password- the password to set
-
validate
protected boolean validate()Validates authenticationService, serviceNameSpaceURI, localServiceName, username, and password- Returns:
- true if the authentictionSerivce is not null and the serviceNameSpaceURI, localServiceName, username, and password are not blank
-