Weaver 3.1.0a1-D1

com.oldlight.weaver.interpreter
Class WeaverSecurityContextImpl

java.lang.Object
  extended bycom.oldlight.weaver.interpreter.WeaverSecurityContextImpl
All Implemented Interfaces:
Serializable, WeaverSecurityContext

public class WeaverSecurityContextImpl
extends Object
implements Serializable, WeaverSecurityContext

Representation of authentication domains.

Author:
Paul Harvey
See Also:
Serialized Form

Field Summary
private  HashSet authenticatedDomains
           
 
Constructor Summary
WeaverSecurityContextImpl()
           
 
Method Summary
 void addDomain(String domain)
          Adds the named domain.
 boolean isDomainAuthenticated(String domain)
          Check whether a given domain has been added.
 void removeDomain(String domain)
          Removes the named domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authenticatedDomains

private HashSet authenticatedDomains
Constructor Detail

WeaverSecurityContextImpl

public WeaverSecurityContextImpl()
Method Detail

addDomain

public void addDomain(String domain)
Description copied from interface: WeaverSecurityContext
Adds the named domain.

Specified by:
addDomain in interface WeaverSecurityContext
Parameters:
domain - Domain to add.

removeDomain

public void removeDomain(String domain)
Description copied from interface: WeaverSecurityContext
Removes the named domain.

Specified by:
removeDomain in interface WeaverSecurityContext
Parameters:
domain - Domain to remove.

isDomainAuthenticated

public boolean isDomainAuthenticated(String domain)
Check whether a given domain has been added.

Specified by:
isDomainAuthenticated in interface WeaverSecurityContext
Parameters:
domain - Name of the domain to check.
Returns:
Whether the domain has been added.

Copyright ©Paul Harvey