public static interface DOF.DomainListener
Modifier and Type | Method and Description |
---|---|
void |
domainAdded(DOF dof,
DOFDomain.Config discoveredDomain,
DOFCredentials original,
DOFConnection.State state)
Called when you have created a DOFServer or DOFConnection and configured it using one of the following methods
and a route to the remote Authentication Server is discovered:
DOFServer.Config.Builder.setDomainDiscoveryCredentials(DOFCredentials)
DOFConnection.Config.Builder.setDomainDiscoveryCredentials(DOFCredentials)
|
void |
removed(DOF dof,
DOFException exception)
Called when the DomainListener is removed from the DOF.
|
void domainAdded(DOF dof, DOFDomain.Config discoveredDomain, DOFCredentials original, DOFConnection.State state)
dof
- The DOF where this listener and the discovered domain were added. This will never be null.discoveredDomain
- The DOFDomain.Config for the discovered domain. This will never be null.original
- The credentials that were used to connect in the domain. These are the credentials that were used in
the setDomainDiscoveryCredentials method. This will never be null.state
- The state of the connection that the domain was discovered over. This will never be null.void removed(DOF dof, DOFException exception)
dof
- The DOF where this listener was added. This will never be null.exception
- An exception that caused the listener to be removed prematurely. This will be null if the application removed the listener normally.DOF.removeDomainListener(org.opendof.core.oal.DOF.DomainListener)