com.sun.xml.wss.impl.policy
Class PolicyAlternatives

java.lang.Object
  extended by com.sun.xml.wss.impl.policy.PolicyAlternatives
All Implemented Interfaces:
SecurityPolicy

public class PolicyAlternatives
extends Object
implements SecurityPolicy

Author:
vbkumarjayanti

Constructor Summary
PolicyAlternatives(List<MessagePolicy> policies)
           
 
Method Summary
 List<MessagePolicy> getSecurityPolicy()
           
 String getType()
          Get the type of the policy.
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyAlternatives

public PolicyAlternatives(List<MessagePolicy> policies)
Method Detail

getType

public String getType()
Description copied from interface: SecurityPolicy
Get the type of the policy.

Implementation Note: Useful to avoid instanceof checks and String.equals checks

Specified by:
getType in interface SecurityPolicy
Returns:
the type of the policy

getSecurityPolicy

public final List<MessagePolicy> getSecurityPolicy()

isEmpty

public boolean isEmpty()
Returns:
true if empty


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.