Class 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()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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,
                              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

      • getServerHostPort

        public java.lang.String getServerHostPort()
      • getServerIpPort

        public java.lang.String getServerIpPort()
      • getFingerprint

        public java.lang.String getFingerprint()