g-Eclipse
Release 1.0.0

eu.geclipse.core.security
Enum ICertificateTrustVerifier.TrustMode

java.lang.Object
  extended by java.lang.Enum<ICertificateTrustVerifier.TrustMode>
      extended by eu.geclipse.core.security.ICertificateTrustVerifier.TrustMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ICertificateTrustVerifier.TrustMode>
Enclosing interface:
ICertificateTrustVerifier

public static enum ICertificateTrustVerifier.TrustMode
extends java.lang.Enum<ICertificateTrustVerifier.TrustMode>

The trust mode of the certificate.


Enum Constant Summary
Never
          Trust mode for never trusting a certificate.
None
          Trust mode could not be established.
NotNow
          Trust mode for temporarily not trusting a certificate.
Permanent
          Trust mode for permanently trusting a certificate.
Session
          Trust mode for trusting a certificate within the current session.
Temporarily
          Trust mode for temporarily trusting a certificate.
 
Method Summary
 boolean isTrusted()
          Determine if the trust mode denotes a trust state.
 boolean isValid()
          Determine if the trust mode is a valid mode.
static ICertificateTrustVerifier.TrustMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ICertificateTrustVerifier.TrustMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final ICertificateTrustVerifier.TrustMode None
Trust mode could not be established.


Never

public static final ICertificateTrustVerifier.TrustMode Never
Trust mode for never trusting a certificate.


NotNow

public static final ICertificateTrustVerifier.TrustMode NotNow
Trust mode for temporarily not trusting a certificate.


Temporarily

public static final ICertificateTrustVerifier.TrustMode Temporarily
Trust mode for temporarily trusting a certificate.


Session

public static final ICertificateTrustVerifier.TrustMode Session
Trust mode for trusting a certificate within the current session.


Permanent

public static final ICertificateTrustVerifier.TrustMode Permanent
Trust mode for permanently trusting a certificate.

Method Detail

values

public static final ICertificateTrustVerifier.TrustMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ICertificateTrustVerifier.TrustMode c : ICertificateTrustVerifier.TrustMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ICertificateTrustVerifier.TrustMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

isTrusted

public boolean isTrusted()
Determine if the trust mode denotes a trust state.

Returns:
True if the trust mode is Temporarily. Session or Permanent.

isValid

public boolean isValid()
Determine if the trust mode is a valid mode. Invalid modes are either non-specified modes or None.

Returns:
True if the trust mode is a valid one.

g-Eclipse
Release 1.0.0