org.shredzone.repowatch.job
Class CronAuthenticationToken

java.lang.Object
  extended by org.springframework.security.providers.AbstractAuthenticationToken
      extended by org.shredzone.repowatch.job.CronAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.Authentication

public final class CronAuthenticationToken
extends org.springframework.security.providers.AbstractAuthenticationToken
implements Serializable

An Authentication that allows a cron job to invoke methods that are secured for "ROLE_CRON".

Version:
$Revision: 328 $
See Also:
Serialized Form

Constructor Summary
CronAuthenticationToken(Object principal)
          Creates a new CronAuthenticationToken for the given cron principal.
 
Method Summary
 Object getCredentials()
           
 Object getPrincipal()
           
 
Methods inherited from class org.springframework.security.providers.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CronAuthenticationToken

public CronAuthenticationToken(Object principal)
Creates a new CronAuthenticationToken for the given cron principal.

Parameters:
principal - The principal for this token. This is usually a reference to the cron job instance. null is not allowed.
Method Detail

getPrincipal

public Object getPrincipal()
Specified by:
getPrincipal in interface org.springframework.security.Authentication

getCredentials

public Object getCredentials()
Specified by:
getCredentials in interface org.springframework.security.Authentication


Copyright © 2007-2011 shredzone.org. All Rights Reserved.