public static interface DOFConnection.State extends DOFImmutable
Modifier and Type | Method and Description |
---|---|
DOFConnection |
createConnection()
Create a connection from this State.
|
DOFAddress |
getAddress()
Return the target address of the connection.
|
DOFConnection.Type |
getConnectionType()
Return the type of the connection.
|
long |
getConnectTime()
Returns the timestamp of when the connection was established.
|
DOFCredentials |
getCredentials()
Return the credentials associated with a connection, or null if the connection
is not secure.
|
DOFConnection.Direction |
getDirection()
Return the direction of this connection -- either inbound or outbound.
|
DOFException |
getException()
Return the exception associated with the connection.
|
int |
getMaxReceiveSilence()
Return the maximum receive silence.
|
int |
getMaxSendSilence()
Return the maximum send silence time.
|
java.lang.String |
getName()
Get this connection's name.
|
DOFCredentials |
getPeerCredentials()
Return the credentials associated with a connection, or null if the connection
is not secure.
|
DOFPermissionSet |
getPermissions()
Return the permissions of the connection.
|
DOFProtocolNegotiator |
getProtocolNegotiator()
Return the protocol negotiator.
|
DOF.SecurityDesire |
getSecurityDesire()
Return the security desire of the connection.
|
DOFSecurityMode |
getSecurityMode()
Return the security mode associated with a connection, or null if the connection
is not secure.
|
DOF.TrafficStats |
getTrafficStats()
Returns the traffic-related statistics for the respective connection.
|
org.opendof.core.transport.ConnectionConfig |
getTransportConfig()
Return the transport configuration associated with the connection.
|
java.util.List<DOFObjectID.Domain> |
getTrustedDomains()
Get this config trusted domain identifiers.
|
boolean |
isConnected()
Return whether the connection is currently established.
|
boolean |
isPermissionsExtendAllowed()
Determine whether or not the connection is allowed to request additional permissions
from the Authentication Server aside from the initial permission set.
|
boolean |
isTunnelDomains()
Determine whether or not the connection is allowed tunnel remote domains.
|
DOFException getException()
DOFSecurityMode getSecurityMode()
DOFCredentials getCredentials()
DOFConnection.Config.getCredentials()
.DOFCredentials getPeerCredentials()
DOFConnection createConnection()
DOFConnection.Config.Builder(DOFConnection.State)
then add the credential with DOFConnection.Config.Builder.setCredentials(DOFCredentials)
.DOFConnection.Direction getDirection()
boolean isConnected()
DOF.TrafficStats getTrafficStats()
DOF.TrafficStats
.long getConnectTime()
java.lang.String getName()
DOFConnection.Type getConnectionType()
DOFAddress getAddress()
DOF.SecurityDesire getSecurityDesire()
DOFPermissionSet getPermissions()
org.opendof.core.transport.ConnectionConfig getTransportConfig()
DOFProtocolNegotiator getProtocolNegotiator()
int getMaxSendSilence()
int getMaxReceiveSilence()
java.util.List<DOFObjectID.Domain> getTrustedDomains()
boolean isPermissionsExtendAllowed()
boolean isTunnelDomains()