Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.ui.cas
Class ServiceProperties  view ServiceProperties download ServiceProperties.java

java.lang.Object
  extended byorg.acegisecurity.ui.cas.ServiceProperties
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ServiceProperties
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

Stores properties related to this CAS service.

Each web application capable of processing CAS tickets is known as a service. This class stores the properties that are relevant to the local CAS service, being the application that is being secured by the Acegi Security System for Spring.

Version:
$Id: ServiceProperties.java,v 1.3 2005/11/17 00:55:49 benalex Exp $

Field Summary
private  boolean sendRenew
           
private  java.lang.String service
           
 
Constructor Summary
ServiceProperties()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 java.lang.String getService()
          Represents the service the user is authenticating to.
 boolean isSendRenew()
          Indicates whether the renew parameter should be sent to the CAS login URL and CAS validation URL.
 void setSendRenew(boolean sendRenew)
           
 void setService(java.lang.String service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private java.lang.String service

sendRenew

private boolean sendRenew
Constructor Detail

ServiceProperties

public ServiceProperties()
Method Detail

setSendRenew

public void setSendRenew(boolean sendRenew)

isSendRenew

public boolean isSendRenew()
Indicates whether the renew parameter should be sent to the CAS login URL and CAS validation URL.

If true, it will force CAS to authenticate the user again (even if the user has previously authenticated). During ticket validation it will require the ticket was generated as a consequence of an explicit login. High security applications would probably set this to true. Defaults to false, providing automated single sign on.


setService

public void setService(java.lang.String service)

getService

public java.lang.String getService()
Represents the service the user is authenticating to.

This service is the callback URL belonging to the local Acegi Security System for Spring secured application. For example,

https://www.mycompany.com/application/j_acegi_cas_security_check


afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from interface: org.springframework.beans.factory.InitializingBean
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean