public static final class DOFSystem.Config.BuilderSecure
extends java.lang.Object
DOFSystem
configurations.
These configurations are immutable once built, and so
the builder allows them to be created (and modified) up until they are built.Constructor and Description |
---|
BuilderSecure(DOFCredentials credentials)
Constructs a new builder using the default secure configuration (see
DOFSystem.Config.Builder() ). |
Modifier and Type | Method and Description |
---|---|
DOFSystem.Config |
build()
Return a configuration based on the current settings of the builder.
|
DOFSystem |
createSystem(DOF dof,
int timeout)
This is a convenience method for creating the system with the implied
DOFSystem.Config . |
DOFSystem.Config.BuilderSecure |
setName(java.lang.String name)
Set the name of the system.
|
DOFSystem.Config.BuilderSecure |
setPermissions(DOFPermissionSet permissions)
Set the initial permissions of the system.
|
DOFSystem.Config.BuilderSecure |
setPermissionsExtendAllowed(boolean isExtendAllowed)
Set whether the system is allowed to extend the initial permission set.
|
DOFSystem.Config.BuilderSecure |
setReceiveFilter(DOFOperation.Filter receiveFilter)
Set the receive filter of the system.
|
DOFSystem.Config.BuilderSecure |
setRemoteDomain(DOFSecurityScope remoteDomain)
Set the remote domain of the system.
|
DOFSystem.Config.BuilderSecure |
setSendFilter(DOFOperation.Filter sendFilter)
Set the send filter of the system.
|
DOFSystem.Config.BuilderSecure |
setTunnelDomains(boolean isTunnelDomains)
Set whether the system is allowed to see tunneled operations.
|
public BuilderSecure(DOFCredentials credentials)
DOFSystem.Config.Builder()
).credentials
- The system's credentials. null
means non-secure.public DOFSystem.Config.BuilderSecure setName(java.lang.String name)
name
- The system name. null means you want the system named automatically (sys1, sys2, etc.)public DOFSystem.Config.BuilderSecure setSendFilter(DOFOperation.Filter sendFilter)
sendFilter
- The system's send filter. null
means none.public DOFSystem.Config.BuilderSecure setReceiveFilter(DOFOperation.Filter receiveFilter)
receiveFilter
- The system's receive filter. null
means none.public DOFSystem.Config.BuilderSecure setPermissions(DOFPermissionSet permissions)
permissions
- The initial permissions to use with the system. null
means none (default).public DOFSystem.Config.BuilderSecure setPermissionsExtendAllowed(boolean isExtendAllowed)
isExtendAllowed
- True if permissions are allowed to be extended. False otherwise.public DOFSystem.Config.BuilderSecure setTunnelDomains(boolean isTunnelDomains)
isTunnelDomains
- True if the system should see tunneled operations. The default is false.public DOFSystem.Config.BuilderSecure setRemoteDomain(DOFSecurityScope remoteDomain)
remoteDomain
- The security scope of an operation to provide into. This must be in a related domain to the
credentials of the system.public DOFSystem.Config build()
public DOFSystem createSystem(DOF dof, int timeout) throws DOFException
DOFSystem.Config
.dof
- The DOF to use to create the system.timeout
- Controls how long (in milliseconds) to wait for authentication when credentials have been set in the configuration. If the configuration does not
include credentials, the timeout may be zero.DOFException
- If unable to authenticate the system when credentials have been set in the configuration.