com.oldlight.weaver.interpreter
Class WeaverSecurityContextImpl
java.lang.Object
com.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
authenticatedDomains
private HashSet authenticatedDomains
WeaverSecurityContextImpl
public WeaverSecurityContextImpl()
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.