Class RemoteFrameworkConnectionInfo
- java.lang.Object
 - 
- org.identityconnectors.framework.api.RemoteFrameworkConnectionInfo
 
 
- 
public final class RemoteFrameworkConnectionInfo extends java.lang.ObjectEncapsulates all the connection information used to connect to a remote instance of the connector framework. 
- 
- 
Constructor Summary
Constructors Constructor Description RemoteFrameworkConnectionInfo(java.lang.String host, int port, GuardedString key)Creates a new instance of RemoteFrameworkConnectionInfo, using a clear (non-ssl) connection and a 60-second timeout.RemoteFrameworkConnectionInfo(java.lang.String host, int port, GuardedString key, boolean useSSL, java.util.List<javax.net.ssl.TrustManager> trustManagers, int timeout)Creates a new instance of RemoteFrameworkConnectionInfo.RemoteFrameworkConnectionInfo(java.lang.String host, int port, GuardedString key, boolean useSSL, java.util.List<javax.net.ssl.TrustManager> trustManagers, int timeout, long heartbeatInterval)Creates a new instance of RemoteFrameworkConnectionInfo. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)longgetHeartbeatInterval()Returns the heartbeat interval (in seconds) to use for the connection.java.lang.StringgetHost()Returns the host to connect to.GuardedStringgetKey()Returns the remote framework key.intgetPort()Returns the port to connect to.intgetTimeout()Returns the timeout (in milliseconds) to use for the connection.java.util.List<javax.net.ssl.TrustManager>getTrustManagers()Returns the list ofTrustManager's.booleangetUseSSL()Returns true if we are to use SSL to connect.inthashCode()java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
RemoteFrameworkConnectionInfo
public RemoteFrameworkConnectionInfo(java.lang.String host, int port, GuardedString key)Creates a new instance of RemoteFrameworkConnectionInfo, using a clear (non-ssl) connection and a 60-second timeout.- Parameters:
 host- The host to connect toport- The port to connect tokey- The remote framework key
 
- 
RemoteFrameworkConnectionInfo
public RemoteFrameworkConnectionInfo(java.lang.String host, int port, GuardedString key, boolean useSSL, java.util.List<javax.net.ssl.TrustManager> trustManagers, int timeout)Creates a new instance of RemoteFrameworkConnectionInfo.- Parameters:
 host- The host to connect toport- The port to connect tokey- The remote framework keyuseSSL- Set to true if we are to connect via SSL.trustManagers- List ofTrustManager's to use for establising the SSL connection. May be null or empty, in which case the default installed providers for the JVM will be used. Ignored if 'useSSL' is false.timeout- The timeout to use (in milliseconds). A value of 0 means infinite timeout;
 
- 
RemoteFrameworkConnectionInfo
public RemoteFrameworkConnectionInfo(java.lang.String host, int port, GuardedString key, boolean useSSL, java.util.List<javax.net.ssl.TrustManager> trustManagers, int timeout, long heartbeatInterval)Creates a new instance of RemoteFrameworkConnectionInfo.- Parameters:
 host- The host to connect toport- The port to connect tokey- The remote framework keyuseSSL- Set to true if we are to connect via SSL.trustManagers- List ofTrustManager's to use for establising the SSL connection. May be null or empty, in which case the default installed providers for the JVM will be used. Ignored if 'useSSL' is false.timeout- The timeout to use (in milliseconds). A value of 0 means infinite timeout;heartbeatInterval- The connection check interval to use (in seconds). A value of 0 means the default 60 seconds.- Since:
 - 1.5
 
 
 - 
 
- 
Method Detail
- 
getHost
public java.lang.String getHost()
Returns the host to connect to.- Returns:
 - The host to connect to.
 
 
- 
getPort
public int getPort()
Returns the port to connect to.- Returns:
 - The port to connect to.
 
 
- 
getKey
public GuardedString getKey()
Returns the remote framework key.- Returns:
 - the remote framework key.
 
 
- 
getUseSSL
public boolean getUseSSL()
Returns true if we are to use SSL to connect.- Returns:
 - true if we are to use SSL to connect.
 
 
- 
getTrustManagers
public java.util.List<javax.net.ssl.TrustManager> getTrustManagers()
Returns the list ofTrustManager's. to use when establishing the connection.- Returns:
 - The list of 
TrustManager's. 
 
- 
getTimeout
public int getTimeout()
Returns the timeout (in milliseconds) to use for the connection. A value of zero means infinite timeout.- Returns:
 - the timeout (in milliseconds) to use for the connection.
 
 
- 
getHeartbeatInterval
public long getHeartbeatInterval()
Returns the heartbeat interval (in seconds) to use for the connection. A value of zero means default 60 seconds timeout.- Returns:
 - the heartbeat interval (in seconds) to use for the connection.
 
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -