public class TrustException extends ConnectionException
Note that the exception should be handled with addition steps to try to establish trust again. The fingerprint will be set to this exception object whenever possible. This fingerprint should be used as a parameter for executing the IOptionsServer.addTrust(String fingerprint) method to install trust to the Perforce SSL connection. Only the "NEW_CONNECTION" and "NEW_KEY" types should be handled for trust retries.
Modifier and Type | Class and Description |
---|---|
static class |
TrustException.Type |
Constructor and Description |
---|
TrustException(TrustException.Type type,
java.lang.String serverHostPort,
java.lang.String serverIpPort,
java.lang.String fingerprint,
java.lang.String message) |
TrustException(TrustException.Type type,
java.lang.String serverHostPort,
java.lang.String serverIpPort,
java.lang.String fingerprint,
java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFingerprint() |
java.lang.String |
getServerHostPort() |
java.lang.String |
getServerIpPort() |
TrustException.Type |
getType() |
public TrustException(TrustException.Type type, java.lang.String serverHostPort, java.lang.String serverIpPort, java.lang.String fingerprint, java.lang.String message)
public TrustException(TrustException.Type type, java.lang.String serverHostPort, java.lang.String serverIpPort, java.lang.String fingerprint, java.lang.String message, java.lang.Throwable cause)
public TrustException.Type getType()
public java.lang.String getServerHostPort()
public java.lang.String getServerIpPort()
public java.lang.String getFingerprint()