org.alfresco.repo.security.authentication
Class AlfrescoSecureContextImpl

java.lang.Object
  extended by org.alfresco.repo.security.authentication.AlfrescoSecureContextImpl
All Implemented Interfaces:
java.io.Serializable, net.sf.acegisecurity.context.Context, net.sf.acegisecurity.context.security.SecureContext, AlfrescoSecureContext

public class AlfrescoSecureContextImpl
extends java.lang.Object
implements AlfrescoSecureContext

Hold an Alfresco extended security context

See Also:
Serialized Form

Constructor Summary
AlfrescoSecureContextImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 net.sf.acegisecurity.Authentication getAuthentication()
          ACEGI
 net.sf.acegisecurity.Authentication getEffectiveAuthentication()
          Get the effective authentication - used for permission checks
 net.sf.acegisecurity.Authentication getRealAuthentication()
          Get the real authenticaiton - used for auditing and everything else
 int hashCode()
           
 void setAuthentication(net.sf.acegisecurity.Authentication newAuthentication)
          ACEGI
 void setEffectiveAuthentication(net.sf.acegisecurity.Authentication effictiveAuthentication)
          Set the effective authentication held by the context
 void setRealAuthentication(net.sf.acegisecurity.Authentication realAuthentication)
          Set the real authentication held by the context
 java.lang.String toString()
           
 void validate()
          ACEGI
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlfrescoSecureContextImpl

public AlfrescoSecureContextImpl()
Method Detail

getAuthentication

public net.sf.acegisecurity.Authentication getAuthentication()
ACEGI

Specified by:
getAuthentication in interface net.sf.acegisecurity.context.security.SecureContext

setAuthentication

public void setAuthentication(net.sf.acegisecurity.Authentication newAuthentication)
ACEGI

Specified by:
setAuthentication in interface net.sf.acegisecurity.context.security.SecureContext

validate

public void validate()
              throws net.sf.acegisecurity.context.ContextInvalidException
ACEGI

Specified by:
validate in interface net.sf.acegisecurity.context.Context
Throws:
net.sf.acegisecurity.context.ContextInvalidException

getEffectiveAuthentication

public net.sf.acegisecurity.Authentication getEffectiveAuthentication()
Description copied from interface: AlfrescoSecureContext
Get the effective authentication - used for permission checks

Specified by:
getEffectiveAuthentication in interface AlfrescoSecureContext
Returns:

getRealAuthentication

public net.sf.acegisecurity.Authentication getRealAuthentication()
Description copied from interface: AlfrescoSecureContext
Get the real authenticaiton - used for auditing and everything else

Specified by:
getRealAuthentication in interface AlfrescoSecureContext
Returns:

setEffectiveAuthentication

public void setEffectiveAuthentication(net.sf.acegisecurity.Authentication effictiveAuthentication)
Description copied from interface: AlfrescoSecureContext
Set the effective authentication held by the context

Specified by:
setEffectiveAuthentication in interface AlfrescoSecureContext

setRealAuthentication

public void setRealAuthentication(net.sf.acegisecurity.Authentication realAuthentication)
Description copied from interface: AlfrescoSecureContext
Set the real authentication held by the context

Specified by:
setRealAuthentication in interface AlfrescoSecureContext

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.