com.perforce.p4java.exception
Class TrustException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.perforce.p4java.exception.P4JavaException
com.perforce.p4java.exception.ConnectionException
com.perforce.p4java.exception.TrustException
- All Implemented Interfaces:
- Serializable
public class TrustException
- extends ConnectionException
Special subclass of ConnectionException to signal the case of attempting to
establish trust for a SSL connection to the Perforce server.
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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TrustException
public TrustException(TrustException.Type type,
String serverHostPort,
String serverIpPort,
String fingerprint,
String message)
TrustException
public TrustException(TrustException.Type type,
String serverHostPort,
String serverIpPort,
String fingerprint,
String message,
Throwable cause)
getType
public TrustException.Type getType()
getServerHostPort
public String getServerHostPort()
getServerIpPort
public String getServerIpPort()
getFingerprint
public String getFingerprint()
Copyright © 2015 Perforce Software. All Rights Reserved.