public interface DomainManager
| Modifier and Type | Interface and Description |
|---|---|
static class |
DomainManager.State
This class represents the instantaneous state of the DomainAuthenticator at a given time.
|
static interface |
DomainManager.StateListener
The state listener for a DomainManager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Adds a permission-less, enabled authentication node to the database.
|
void |
addRemoteDomainNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Adds a permission-less, enabled remote domain node to the database.
|
void |
addSecureGroupNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Adds a permission-less, enabled secure group node to the database.
|
void |
addStateListener(DomainManager.StateListener listener)
Add a state listener to the DomainAuthenticator.
|
void |
addToSecureGroup(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFObjectID.Authentication groupNodeID)
Add a node to a secure group.
|
void |
destroy()
Destroy the DomainManager instance, freeing all resources.
|
boolean |
exists(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Returns true if the given node exists, false otherwise.
|
ManagementAuthenticationNode |
getAuthenticationNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Get a given authentication node.
|
CloseableIterable<org.opendof.core.oal.DOFObjectID.Authentication> |
getAuthenticationNodeIDs()
Get a CloseableIterable which allows iteration through all stored authentication nodes.
|
DomainManager.State |
getManagerState() |
NodeType |
getNodeType(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Returns the type of the node.
|
ManagementRemoteDomainNode |
getRemoteDomainNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Get a given remote domain node.
|
CloseableIterable<org.opendof.core.oal.DOFObjectID.Authentication> |
getRemoteDomainNodeIDs()
Get a CloseableIterable which allows iteration through all stored remote domain nodes.
|
ManagementSecureGroupNode |
getSecureGroupNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Get a given secure group node.
|
CloseableIterable<org.opendof.core.oal.DOFObjectID.Authentication> |
getSecureGroupNodeIDs()
Get a CloseableIterable which allows iteration through all stored secure group nodes.
|
org.opendof.core.oal.DOFObjectID.Domain |
getStorageDomainID()
Get the domain identifier associated with this instance.
|
void |
grantPermission(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.security.DOFPermission permission,
int pgid)
Grants a permission to a node in a single scope.
|
boolean |
isEnabled(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Returns true if the given node exists and is enabled, false otherwise.
|
void |
removeAuthenticationNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Removes an authentication node.
|
void |
removeCredentials(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
short credentialType)
Removes credentials from a node.
|
void |
removeFromSecureGroup(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFObjectID.Authentication groupNodeID)
Remove a node from a secure group.
|
void |
removeRemoteDomainLocalNode(org.opendof.core.oal.DOFObjectID.Authentication domainNodeID,
org.opendof.core.oal.DOFObjectID.Authentication initiator)
Remove a local node from a remote domain.
|
void |
removeRemoteDomainNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Removes a remote domain node.
|
void |
removeSecureGroupNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
Removes a secure group node.
|
void |
removeStateListener(DomainManager.StateListener listener)
Remove a state listener from the DomainAuthenticator.
|
void |
revokePermission(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.security.DOFPermission permission,
int pgid)
Revoke a permission from a node in a single scope.
|
void |
setCredentials(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFCredentials credentials)
Associates a node with credentials.
|
void |
setCredentials(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
short credentialType,
byte[] privateStorage)
Associates a node with credentials.
|
void |
setEnabled(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
boolean isEnabled)
Sets or clears the �enabled� flag for a node.
|
void |
setGroupConfig(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFAuthenticator.SecureGroupNode.GroupConfig groupConfig)
Sets a secure group's configuration.
|
void |
setRemoteDomainLocalNode(org.opendof.core.oal.DOFObjectID.Authentication domainNodeID,
org.opendof.core.oal.DOFObjectID.Authentication initiator,
org.opendof.core.oal.DOFObjectID.Authentication localNodeID)
Set the local node for a remote domain node.
|
void |
start(int timeout)
Start the DomainManager.
|
void |
stop()
Stop the DomainManager.
|
org.opendof.core.oal.DOFObjectID.Domain getStorageDomainID()
throws java.lang.Exception
java.lang.Exception - on failurevoid addAuthenticationNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws AlreadyExistsException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of node to be added.AlreadyExistsException - if the given node already exists.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failures.void removeAuthenticationNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier for node to be removed.NotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid addSecureGroupNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws AlreadyExistsException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of node to be added.AlreadyExistsException - if the given node already exists.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failures.void removeSecureGroupNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier for node to be removed.NotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid addRemoteDomainNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws AlreadyExistsException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of node to be added.AlreadyExistsException - if the given node already exists.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failures.void removeRemoteDomainNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier for node to be removed.NotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid setCredentials(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFCredentials credentials)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of the node on which to set credentials.credentials - credentials to be setNotFoundException - if the given node cannot be found.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid setCredentials(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
short credentialType,
byte[] privateStorage)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of the node on which to set credentials.credentialType - The type of credentials to set.privateStorage - The private storage of the credentials, see DOFCredentials.getPrivateStorage()NotFoundException - if the given node cannot be found.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid removeCredentials(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
short credentialType)
throws NotFoundException,
CredentialsNotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of the node from which to remove credentials.credentialType - Type of credentials to remove.NotFoundException - if the given node cannot be found.CredentialsNotFoundException - if the given credential type cannot be found associated with the given node.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid grantPermission(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.security.DOFPermission permission,
int pgid)
throws NotFoundException,
AccessDeniedException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier for the node on which to grant permissionpermission - the permission to be grantedpgid - identifier of the permission group in which to grant permissionNotFoundException - if the given node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid revokePermission(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.security.DOFPermission permission,
int pgid)
throws NotFoundException,
PermissionNotFoundException,
PGIDNotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier for the node on which to grant permissionpermission - the permission to be revokedpgid - identifier of the permission group in which to revoke permissionNotFoundException - if the given node cannot be foundPermissionNotFoundException - if the given permission cannot be found associated with the given nodePGIDNotFoundException - if the give scope cannot be found associated with the given permissionAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid setGroupConfig(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFAuthenticator.SecureGroupNode.GroupConfig groupConfig)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - identifier for the secure group nodegroupConfig - the group configuration dataNotFoundException - if the group cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid addToSecureGroup(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFObjectID.Authentication groupNodeID)
throws NotFoundException,
GroupNotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - identifier for the node to be addedgroupNodeID - identifier for the secure groupNotFoundException - if the node cannot be foundGroupNotFoundException - if the secure group cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid removeFromSecureGroup(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
org.opendof.core.oal.DOFObjectID.Authentication groupNodeID)
throws NotFoundException,
GroupNotFoundException,
NotMemberException,
AccessDeniedException,
java.lang.Exception
nodeID - identifier for the node to be removedgroupNodeID - identifier for the secure groupNotFoundException - if the node cannot be foundGroupNotFoundException - if the secure group cannot be foundNotMemberException - if the node is not currently in the list of nodes associated with the secure groupAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid setRemoteDomainLocalNode(org.opendof.core.oal.DOFObjectID.Authentication domainNodeID,
org.opendof.core.oal.DOFObjectID.Authentication initiator,
org.opendof.core.oal.DOFObjectID.Authentication localNodeID)
throws NotFoundException,
LocalNotFoundException,
AccessDeniedException,
java.lang.Exception
domainNodeID - identifier for the remote domain nodeinitiator - identifier for the initiator or null, indicating that this is the default local node (anything without a specific
initiator-mapped local node should use it),localNodeID - must be a valid authentication nodeNotFoundException - if domainNodeID cannot be foundLocalNotFoundException - if localNodeID cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresvoid removeRemoteDomainLocalNode(org.opendof.core.oal.DOFObjectID.Authentication domainNodeID,
org.opendof.core.oal.DOFObjectID.Authentication initiator)
throws NotFoundException,
InitiatorNotFoundException,
AccessDeniedException,
java.lang.Exception
domainNodeID - identifier for the remote domain nodeinitiator - identifier or null, which indicates that the default local node must be removedNotFoundException - if domainNodeID cannot be foundInitiatorNotFoundException - if initiator cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresboolean exists(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws AccessDeniedException,
java.lang.Exception
nodeID - identifier of node to be checkedAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for any failureNodeType getNodeType(org.opendof.core.oal.DOFObjectID.Authentication nodeID) throws NotFoundException, AccessDeniedException, java.lang.Exception
nodeID - identifier for the nodeNotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for any other failuresvoid setEnabled(org.opendof.core.oal.DOFObjectID.Authentication nodeID,
boolean isEnabled)
throws NotFoundException,
AccessDeniedException,
java.lang.Exception
nodeID - Identifier of the node to set.isEnabled - whether or not the given node should be enabled.NotFoundException - if the given node cannot be found.AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failures.boolean isEnabled(org.opendof.core.oal.DOFObjectID.Authentication nodeID)
throws AccessDeniedException,
java.lang.Exception
nodeID - identifier for node to checkAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for any failureManagementAuthenticationNode getAuthenticationNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID) throws NotFoundException, AccessDeniedException, java.lang.Exception
nodeID - identifier for the nodeNotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for otherManagementSecureGroupNode getSecureGroupNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID) throws NotFoundException, AccessDeniedException, java.lang.Exception
nodeID - identifier for the nodeNotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresManagementRemoteDomainNode getRemoteDomainNode(org.opendof.core.oal.DOFObjectID.Authentication nodeID) throws NotFoundException, AccessDeniedException, java.lang.Exception
nodeID - identifier for the nodeNotFoundException - if the node cannot be foundAccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - for other failuresCloseableIterable<org.opendof.core.oal.DOFObjectID.Authentication> getAuthenticationNodeIDs() throws AccessDeniedException, java.lang.Exception
AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - on failureCloseableIterable<org.opendof.core.oal.DOFObjectID.Authentication> getSecureGroupNodeIDs() throws AccessDeniedException, java.lang.Exception
AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - on failureCloseableIterable<org.opendof.core.oal.DOFObjectID.Authentication> getRemoteDomainNodeIDs() throws AccessDeniedException, java.lang.Exception
AccessDeniedException - if this management instance is not allowed to execute this methodjava.lang.Exception - on failurevoid addStateListener(DomainManager.StateListener listener)
listener - The listener to add.void removeStateListener(DomainManager.StateListener listener)
listener - void start(int timeout)
throws DomainManagementException
timeout - The time in milliseconds to wait before timeout.DomainManagementException - On any failure.void stop()
void destroy()
DomainManager.State getManagerState()