Package 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:
java.io.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrustException.Type
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFingerprint()
java.lang.String
getServerHostPort()
java.lang.String
getServerIpPort()
TrustException.Type
getType()
-
-
-
Constructor Detail
-
TrustException
public TrustException(TrustException.Type type, java.lang.String serverHostPort, java.lang.String serverIpPort, java.lang.String fingerprint, java.lang.String message)
-
TrustException
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)
-
-
Method Detail
-
getType
public TrustException.Type getType()
-
getServerHostPort
public java.lang.String getServerHostPort()
-
getServerIpPort
public java.lang.String getServerIpPort()
-
getFingerprint
public java.lang.String getFingerprint()
-
-