com.perforce.p4java.exception
Class TrustException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.perforce.p4java.exception.P4JavaException
              extended by com.perforce.p4java.exception.ConnectionException
                  extended by 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

Nested Class Summary
static class TrustException.Type
           
 
Constructor Summary
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)
           
 
Method Summary
 String getFingerprint()
           
 String getServerHostPort()
           
 String getServerIpPort()
           
 TrustException.Type getType()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

getType

public TrustException.Type getType()

getServerHostPort

public String getServerHostPort()

getServerIpPort

public String getServerIpPort()

getFingerprint

public String getFingerprint()


Copyright © 2015 Perforce Software. All Rights Reserved.