org.jasig.schedassist.impl.caldav
Class DefaultCredentialsProviderFactoryImpl

java.lang.Object
  extended by org.jasig.schedassist.impl.caldav.DefaultCredentialsProviderFactoryImpl
All Implemented Interfaces:
CredentialsProviderFactory
Direct Known Subclasses:
OracleCommsCredentialsProviderFactoryImpl

public class DefaultCredentialsProviderFactoryImpl
extends Object
implements CredentialsProviderFactory

Default CredentialsProviderFactory implementation, returns DefaultCredentialsProviderImpl instances.

Version:
$Id: DefaultCredentialsProviderProviderImpl.java $
Author:
Nicholas Blair

Constructor Summary
DefaultCredentialsProviderFactoryImpl()
           
 
Method Summary
protected  org.apache.http.auth.Credentials getAdminCredentials()
           
 org.apache.http.auth.AuthScope getAuthScope()
           
protected  String getCaldavAdminPassword()
           
protected  String getCaldavAdminUsername()
           
 org.apache.http.client.CredentialsProvider getCredentialsProvider(ICalendarAccount account)
          Return a CredentialsProvider that can be used when performing caldav operations against the provided ICalendarAccount.
 void setAuthScope(org.apache.http.auth.AuthScope authScope)
           
 void setCaldavAdminPassword(String caldavAdminPassword)
           
 void setCaldavAdminUsername(String caldavAdminUsername)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCredentialsProviderFactoryImpl

public DefaultCredentialsProviderFactoryImpl()
Method Detail

setCaldavAdminUsername

public void setCaldavAdminUsername(String caldavAdminUsername)
Parameters:
caldavAdminUsername - the caldavAdminUsername to set

setCaldavAdminPassword

public void setCaldavAdminPassword(String caldavAdminPassword)
Parameters:
caldavAdminPassword - the caldavAdminPassword to set

getCaldavAdminUsername

protected String getCaldavAdminUsername()
Returns:
the caldavAdminUsername

getCaldavAdminPassword

protected String getCaldavAdminPassword()
Returns:
the caldavAdminPassword

getAuthScope

public org.apache.http.auth.AuthScope getAuthScope()
Returns:
the authScope

setAuthScope

public void setAuthScope(org.apache.http.auth.AuthScope authScope)
Parameters:
authScope - the authScope to set

getAdminCredentials

protected org.apache.http.auth.Credentials getAdminCredentials()
Returns:
a Credentials made up of getCaldavAdminUsername() and getCaldavAdminPassword().

getCredentialsProvider

public org.apache.http.client.CredentialsProvider getCredentialsProvider(ICalendarAccount account)
Description copied from interface: CredentialsProviderFactory
Return a CredentialsProvider that can be used when performing caldav operations against the provided ICalendarAccount. Implementations may not all use the ICalendarAccount; some return the same set of credentials for all inputs.

Specified by:
getCredentialsProvider in interface CredentialsProviderFactory
Returns:
a never null CredentialsProvider that the data dao can use to interact with the CalDAV server


Copyright © 2012 Jasig. All Rights Reserved.