org.apache.jetspeed.sso.impl
Class SSOSiteImpl

java.lang.Object
  extended by org.apache.jetspeed.sso.impl.SSOSiteImpl
All Implemented Interfaces:
org.apache.jetspeed.sso.SSOSite

public class SSOSiteImpl
extends Object
implements org.apache.jetspeed.sso.SSOSite

SSOSiteImpl Class holding information about the Site and credentials for Single Sign on SSO. OJB will map the database entries into this class

Version:
$Id: SSOSiteImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
Roger Ruttimann

Field Summary
private  String formPwdField
           
private  String formUserField
           
private  boolean isAllowUserSet
           
private  boolean isCertificateRequired
           
private  boolean isChallangeResponseAuthentication
           
private  boolean isFormAuthentication
           
private  String name
           
private  Collection principals
           
private  String realm
           
private  Collection remotePrincipals
           
private  int siteId
           
private  String siteURL
           
 
Constructor Summary
SSOSiteImpl()
           
 
Method Summary
 void addPrincipal(org.apache.jetspeed.sso.SSOPrincipal principal)
          addPrincipal Adds the SSOPrincipal to the principals collection
 void configFormAuthentication(String formUserField, String formPwdField)
           
 String getFormPwdField()
           
 String getFormUserField()
           
 String getName()
           
 Collection getPrincipals()
           
 String getRealm()
           
 Collection getRemotePrincipals()
           
 int getSiteId()
           
 String getSiteURL()
           
 boolean isAllowUserSet()
           
 boolean isCertificateRequired()
           
 boolean isChallangeResponseAuthentication()
           
 boolean isFormAuthentication()
           
 void removePrincipal(long principalId)
          removePrincipal() removes a principal from the principals collection
 void setAllowUserSet(boolean isAllowUserSet)
           
 void setCertificateRequired(boolean isCertificateRequired)
           
 void setChallengeResponseAuthentication()
           
 void setChallengeResponseAuthentication(boolean isChallangeResponseAuthentication)
           
 void setFormAuthentication(boolean isFormAuthentication)
           
 void setFormAuthentication(String formUserField, String formPwdField)
          Form authentication requires two fields that hold the credential information for the request.
 void setFormPwdField(String formPwdField)
           
 void setFormUserField(String formUserField)
           
 void setName(String name)
           
 void setPrincipals(Collection principals)
           
 void setRealm(String realm)
           
 void setRemotePrincipals(Collection remotePrincipals)
           
 void setSiteId(int siteId)
           
 void setSiteURL(String siteURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

siteId

private int siteId

name

private String name

siteURL

private String siteURL

isAllowUserSet

private boolean isAllowUserSet

isCertificateRequired

private boolean isCertificateRequired

isChallangeResponseAuthentication

private boolean isChallangeResponseAuthentication

realm

private String realm

isFormAuthentication

private boolean isFormAuthentication

formUserField

private String formUserField

formPwdField

private String formPwdField

principals

private Collection principals

remotePrincipals

private Collection remotePrincipals
Constructor Detail

SSOSiteImpl

public SSOSiteImpl()
Method Detail

isAllowUserSet

public boolean isAllowUserSet()
Specified by:
isAllowUserSet in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the isAllowUserSet.

setAllowUserSet

public void setAllowUserSet(boolean isAllowUserSet)
Specified by:
setAllowUserSet in interface org.apache.jetspeed.sso.SSOSite
Parameters:
isAllowUserSet - The isAllowUserSet to set.

isCertificateRequired

public boolean isCertificateRequired()
Specified by:
isCertificateRequired in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the isCertificateRequired.

setCertificateRequired

public void setCertificateRequired(boolean isCertificateRequired)
Specified by:
setCertificateRequired in interface org.apache.jetspeed.sso.SSOSite
Parameters:
isCertificateRequired - The isCertificateRequired to set.

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the name.

setName

public void setName(String name)
Specified by:
setName in interface org.apache.jetspeed.sso.SSOSite
Parameters:
name - The name to set.

getPrincipals

public Collection getPrincipals()
Specified by:
getPrincipals in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the principals.

setPrincipals

public void setPrincipals(Collection principals)
Specified by:
setPrincipals in interface org.apache.jetspeed.sso.SSOSite
Parameters:
principals - The principals to set.

getSiteId

public int getSiteId()
Specified by:
getSiteId in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the siteId.

setSiteId

public void setSiteId(int siteId)
Specified by:
setSiteId in interface org.apache.jetspeed.sso.SSOSite
Parameters:
siteId - The siteId to set.

getSiteURL

public String getSiteURL()
Specified by:
getSiteURL in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the siteURL.

setSiteURL

public void setSiteURL(String siteURL)
Specified by:
setSiteURL in interface org.apache.jetspeed.sso.SSOSite
Parameters:
siteURL - The siteURL to set.

addPrincipal

public void addPrincipal(org.apache.jetspeed.sso.SSOPrincipal principal)
                  throws org.apache.jetspeed.sso.SSOException
addPrincipal Adds the SSOPrincipal to the principals collection

Specified by:
addPrincipal in interface org.apache.jetspeed.sso.SSOSite
Throws:
org.apache.jetspeed.sso.SSOException

removePrincipal

public void removePrincipal(long principalId)
                     throws org.apache.jetspeed.sso.SSOException
removePrincipal() removes a principal from the principals collection

Specified by:
removePrincipal in interface org.apache.jetspeed.sso.SSOSite
Throws:
org.apache.jetspeed.sso.SSOException

getRemotePrincipals

public Collection getRemotePrincipals()
Specified by:
getRemotePrincipals in interface org.apache.jetspeed.sso.SSOSite
Returns:
Returns the remotePrincipals.

setRemotePrincipals

public void setRemotePrincipals(Collection remotePrincipals)
Specified by:
setRemotePrincipals in interface org.apache.jetspeed.sso.SSOSite
Parameters:
remotePrincipals - The remotePrincipals to set.

setFormAuthentication

public void setFormAuthentication(String formUserField,
                                  String formPwdField)
Form authentication requires two fields that hold the credential information for the request.


setChallengeResponseAuthentication

public void setChallengeResponseAuthentication()

getFormPwdField

public String getFormPwdField()
Specified by:
getFormPwdField in interface org.apache.jetspeed.sso.SSOSite

setFormPwdField

public void setFormPwdField(String formPwdField)
Specified by:
setFormPwdField in interface org.apache.jetspeed.sso.SSOSite

getFormUserField

public String getFormUserField()
Specified by:
getFormUserField in interface org.apache.jetspeed.sso.SSOSite

setFormUserField

public void setFormUserField(String formUserField)
Specified by:
setFormUserField in interface org.apache.jetspeed.sso.SSOSite

isChallangeResponseAuthentication

public boolean isChallangeResponseAuthentication()
Specified by:
isChallangeResponseAuthentication in interface org.apache.jetspeed.sso.SSOSite

setChallengeResponseAuthentication

public void setChallengeResponseAuthentication(boolean isChallangeResponseAuthentication)
Specified by:
setChallengeResponseAuthentication in interface org.apache.jetspeed.sso.SSOSite

isFormAuthentication

public boolean isFormAuthentication()
Specified by:
isFormAuthentication in interface org.apache.jetspeed.sso.SSOSite

setFormAuthentication

public void setFormAuthentication(boolean isFormAuthentication)
Specified by:
setFormAuthentication in interface org.apache.jetspeed.sso.SSOSite

configFormAuthentication

public void configFormAuthentication(String formUserField,
                                     String formPwdField)
Specified by:
configFormAuthentication in interface org.apache.jetspeed.sso.SSOSite

setRealm

public void setRealm(String realm)
Specified by:
setRealm in interface org.apache.jetspeed.sso.SSOSite

getRealm

public String getRealm()
Specified by:
getRealm in interface org.apache.jetspeed.sso.SSOSite


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.