com.teamdev.jxbrowser.security
Enum SecurityProblem

java.lang.Object
  extended by java.lang.Enum<SecurityProblem>
      extended by com.teamdev.jxbrowser.security.SecurityProblem
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SecurityProblem>

public enum SecurityProblem
extends java.lang.Enum<SecurityProblem>

Provides information about a security problem.


Enum Constant Summary
AUTHENTICATION_REQUIRED
          Server requests client authentication.
CONFIRMATION_REQUIRED
          User confirmation is required for redirection.
INVALID_CERTIFICATE_DATE
          Invalid date on the certificate
INVALID_CERTIFICATE_NAME
          Invalid name on the certificate.
MOVING_FROM_HTTP_TO_HTTPS
          Request is redirected from a non-SSL to an SSL location.
MOVING_FROM_HTTPS_TO_HTTP
          Request is redirected from an SSL to a non-SSL location.
NOT_TRUSTED_CERTIFICATE
          Invalid Certification Authority.
 
Method Summary
 java.lang.String getDefaultDescription()
          Provide a default human-readable description of the security problem.
static SecurityProblem valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SecurityProblem[] values()
          Returns an array containing the constants of this enum type, in the order they are 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

NOT_TRUSTED_CERTIFICATE

public static final SecurityProblem NOT_TRUSTED_CERTIFICATE
Invalid Certification Authority.


INVALID_CERTIFICATE_NAME

public static final SecurityProblem INVALID_CERTIFICATE_NAME
Invalid name on the certificate.


INVALID_CERTIFICATE_DATE

public static final SecurityProblem INVALID_CERTIFICATE_DATE
Invalid date on the certificate


MOVING_FROM_HTTP_TO_HTTPS

public static final SecurityProblem MOVING_FROM_HTTP_TO_HTTPS
Request is redirected from a non-SSL to an SSL location.


MOVING_FROM_HTTPS_TO_HTTP

public static final SecurityProblem MOVING_FROM_HTTPS_TO_HTTP
Request is redirected from an SSL to a non-SSL location.


CONFIRMATION_REQUIRED

public static final SecurityProblem CONFIRMATION_REQUIRED
User confirmation is required for redirection.


AUTHENTICATION_REQUIRED

public static final SecurityProblem AUTHENTICATION_REQUIRED
Server requests client authentication.

Method Detail

values

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

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

valueOf

public static SecurityProblem 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
java.lang.NullPointerException - if the argument is null

getDefaultDescription

public java.lang.String getDefaultDescription()
Provide a default human-readable description of the security problem.

Returns:
default human-readable description of the problem.