SwitchYard: Core 0.6.0.Beta2

org.switchyard.policy
Enum SecurityPolicy

java.lang.Object
  extended by java.lang.Enum<SecurityPolicy>
      extended by org.switchyard.policy.SecurityPolicy
All Implemented Interfaces:
Serializable, Comparable<SecurityPolicy>, Policy

public enum SecurityPolicy
extends Enum<SecurityPolicy>
implements Policy

Supported types for Security Policy.

Author:
David Ward <dward@jboss.org> © 2012 Red Hat Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.switchyard.policy.Policy
Policy.PolicyType
 
Enum Constant Summary
CLIENT_AUTHENTICATION
          Ensure that the client is authenticated by the server.
CONFIDENTIALITY
          Ensure that only authorized entities can view the contents of a message.
 
Method Summary
 String getName()
          Returns the string identifier for the policy.
 Policy getPolicyDependency()
          Returns a policy which is a dependency of this Policy.
 boolean isCompatibleWith(Policy target)
          Returns whether the policy passed in parameter is compatible with this or not.
 String toString()
          
static SecurityPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecurityPolicy[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.switchyard.policy.Policy
getType
 

Enum Constant Detail

CLIENT_AUTHENTICATION

public static final SecurityPolicy CLIENT_AUTHENTICATION
Ensure that the client is authenticated by the server.


CONFIDENTIALITY

public static final SecurityPolicy CONFIDENTIALITY
Ensure that only authorized entities can view the contents of a message.

Method Detail

values

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

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

valueOf

public static SecurityPolicy 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

getName

public String getName()
Returns the string identifier for the policy.

Specified by:
getName in interface Policy
Returns:
policy name

toString

public String toString()

Overrides:
toString in class Enum<SecurityPolicy>

isCompatibleWith

public boolean isCompatibleWith(Policy target)
Returns whether the policy passed in parameter is compatible with this or not.

Specified by:
isCompatibleWith in interface Policy
Parameters:
target - policy to check compatibility
Returns:
true if compatible

getPolicyDependency

public Policy getPolicyDependency()
Returns a policy which is a dependency of this Policy.

Specified by:
getPolicyDependency in interface Policy
Returns:
a policy dependency

SwitchYard: Core 0.6.0.Beta2

JBoss by Red Hat