com.esri.core.io
Class SelfSignedCertificateHandle

java.lang.Object
  extended by com.esri.core.io.SelfSignedCertificateHandle

public final class SelfSignedCertificateHandle
extends Object

Registers a listener here to handle self-singed certificates.

Since:
1.0

Constructor Summary
SelfSignedCertificateHandle()
           
 
Method Summary
static void clearTrustedCertificates()
          Removes all cached trusted certificates.
static OnSelfSignedCertificateListener getOnSelfSignedCertificateListener()
          Returns the user defined onSelfSignedCertificateListener.
static boolean isTrustAllSigners()
          Returns true if all signers are trusted.
static void setOnSelfSignedCertificateListener(OnSelfSignedCertificateListener listener)
          Sets the onSelfSignedCertificateListener to handle self-signed certificates.
static void setTrustAllSigners(boolean trustAllSigner)
          Sets to true to trust all signers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfSignedCertificateHandle

public SelfSignedCertificateHandle()
Method Detail

getOnSelfSignedCertificateListener

public static final OnSelfSignedCertificateListener getOnSelfSignedCertificateListener()
Returns the user defined onSelfSignedCertificateListener.

Returns:
Returns the onSelfSignedCertificateListener.
Since:
10.1.1
See Also:
setOnSelfSignedCertificateListener(OnSelfSignedCertificateListener)

setOnSelfSignedCertificateListener

public static final void setOnSelfSignedCertificateListener(OnSelfSignedCertificateListener listener)
Sets the onSelfSignedCertificateListener to handle self-signed certificates. With the listener, users have full control over all certificates. You should not mix this with isTrustAllSigners() method. The trusted certificates will be cached in the VM. You can clear the cache by calling clearTrustedCertificates().

Parameters:
listener - The onSelfSignedCertificateListener to set.
Since:
1.0

isTrustAllSigners

public static final boolean isTrustAllSigners()
Returns true if all signers are trusted. However, invalided certificates (e.g. expired certificates) will still cause exceptions. To accept all certificates, you need to use

Returns:
Returns returns true if trust all signers. setOnSelfSignedCertificateListener(OnSelfSignedCertificateListener) and always returns true;
Since:
1.0

setTrustAllSigners

public static final void setTrustAllSigners(boolean trustAllSigner)
Sets to true to trust all signers.

Parameters:
trustAllSigner - Sets to true to trust all signers.
Since:
1.0
See Also:
isTrustAllSigners()

clearTrustedCertificates

public static final void clearTrustedCertificates()
Removes all cached trusted certificates.

Since:
1.0


Copyright © 2012. All Rights Reserved.