JXTA

net.jxta.access
Enum AccessService.AccessResult

java.lang.Object
  extended by java.lang.Enum<AccessService.AccessResult>
      extended by net.jxta.access.AccessService.AccessResult
All Implemented Interfaces:
Serializable, Comparable<AccessService.AccessResult>
Enclosing interface:
AccessService

public static enum AccessService.AccessResult
extends Enum<AccessService.AccessResult>

The result of an access check.


Enum Constant Summary
DISALLOWED
          Operation is disallowed.
PERMITTED
          Operation is permitted.
PERMITTED_EXPIRED
          Operation would be permitted, but one (or more) of the provided credentials was expired.
UNDETERMINED
          State is unknown or could not be established.
 
Method Summary
static AccessService.AccessResult valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessService.AccessResult[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDETERMINED

public static final AccessService.AccessResult UNDETERMINED
State is unknown or could not be established.

The operation should not be performed.

This result may not be used by all Access Service implementations.


DISALLOWED

public static final AccessService.AccessResult DISALLOWED
Operation is disallowed.

The operation should not be performed.


PERMITTED

public static final AccessService.AccessResult PERMITTED
Operation is permitted.

The operation should be performed.


PERMITTED_EXPIRED

public static final AccessService.AccessResult PERMITTED_EXPIRED
Operation would be permitted, but one (or more) of the provided credentials was expired.

The operation should not be performed.

This result may not be used by all Access Service implementations.

Method Detail

values

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

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

valueOf

public static AccessService.AccessResult 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
NullPointerException - if the argument is null

JXSE