org.kuali.rice.ksb.service
Class BasicAuthenticationCredentials

java.lang.Object
  extended by 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
BasicAuthenticationCredentials()
           
 
Method Summary
 void afterPropertiesSet()
          Register the service credentials for the service
 BasicAuthenticationService getAuthenticationService()
          Gets the BasicAuthenticationService to use
 String getLocalServiceName()
          Gets the localServiceName
 String getPassword()
          Gets the password
 String getServiceNameSpaceURI()
          Gets the serviceNameSpaceURI
 String getUsername()
          Gets the username
 void setAuthenticationService(BasicAuthenticationService authenticationService)
          Sets the authenticationService
 void setLocalServiceName(String localServiceName)
          Sets the localServiceName
 void setPassword(String password)
          Sets the password
 void setServiceNameSpaceURI(String serviceNameSpaceURI)
          Sets the serviceNameSpaceURI
 void setUsername(String username)
          Sets the username
protected  boolean validate()
          Validates authenticationService, serviceNameSpaceURI, localServiceName, username, and password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthenticationCredentials

public BasicAuthenticationCredentials()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Register the service credentials for the service

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception
See Also:
InitializingBean.afterPropertiesSet()

getAuthenticationService

public BasicAuthenticationService getAuthenticationService()
Gets the BasicAuthenticationService to use

Returns:
BasicAuthenticationService the BasicAuthenticationService

setAuthenticationService

public void setAuthenticationService(BasicAuthenticationService authenticationService)
Sets the authenticationService

Parameters:
authenticationService - the BasicAthenticationService to set

getServiceNameSpaceURI

public String getServiceNameSpaceURI()
Gets the serviceNameSpaceURI

Returns:
String serviceNameSpaceURI of this BasicAuthenticationCredentials

setServiceNameSpaceURI

public void setServiceNameSpaceURI(String serviceNameSpaceURI)
Sets the serviceNameSpaceURI

Parameters:
serviceNameSpaceURI - the serviceNameSpaceURI to set

getLocalServiceName

public String getLocalServiceName()
Gets the localServiceName

Returns:
String localServiceName of this BasicAuthenticationCredentials

setLocalServiceName

public void setLocalServiceName(String localServiceName)
Sets the localServiceName

Parameters:
localServiceName - the localServiceName to set

getUsername

public String getUsername()
Gets the username

Returns:
username the username of this BasicAuthenticationCredentials

setUsername

public void setUsername(String username)
Sets the username

Parameters:
username - the username to set

getPassword

public String getPassword()
Gets the password

Returns:
password the password of this BasicAuthenticationCredentials

setPassword

public void setPassword(String password)
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


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.