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,
String serverHostPort,
String serverIpPort,
String fingerprint,
String message) |
TrustException(TrustException.Type type,
String serverHostPort,
String serverIpPort,
String fingerprint,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getFingerprint() |
String |
getServerHostPort() |
String |
getServerIpPort() |
TrustException.Type |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TrustException(TrustException.Type type, String serverHostPort, String serverIpPort, String fingerprint, String message)
public TrustException.Type getType()
public String getServerHostPort()
public String getServerIpPort()
public String getFingerprint()
Copyright © 2017 Perforce Software. All Rights Reserved.