uk.ac.soton.ecs.iam.grid.comms.client.helpers
Enum UnknownCertificateResponse

java.lang.Object
  extended by java.lang.Enum<UnknownCertificateResponse>
      extended by uk.ac.soton.ecs.iam.grid.comms.client.helpers.UnknownCertificateResponse
All Implemented Interfaces:
Serializable, Comparable<UnknownCertificateResponse>

public enum UnknownCertificateResponse
extends Enum<UnknownCertificateResponse>

The action to take in response to a certificate which isn't signed by a known CA.


Enum Constant Summary
ACCEPT_THIS_MESSAGE
           
ACCEPT_THIS_SESSION
          The certificate should be trusted for this session.
REJECT
          This certificate should be rejected.
 
Method Summary
 String toString()
           
static UnknownCertificateResponse valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UnknownCertificateResponse[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REJECT

public static final UnknownCertificateResponse REJECT
This certificate should be rejected. The user does not believe that that certificate belongs to the claimed entity.


ACCEPT_THIS_SESSION

public static final UnknownCertificateResponse ACCEPT_THIS_SESSION
The certificate should be trusted for this session. The user has either verified that the certificate is correct, or understands that the server should not be trusted with sensitive or important data.


ACCEPT_THIS_MESSAGE

public static final UnknownCertificateResponse ACCEPT_THIS_MESSAGE
Method Detail

values

public static final UnknownCertificateResponse[] 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(UnknownCertificateResponse c : UnknownCertificateResponse.values())
        System.out.println(c);

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

valueOf

public static UnknownCertificateResponse valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<UnknownCertificateResponse>


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.