javax.security.auth.message
Class MessagePolicy.TargetPolicy

java.lang.Object
  extended by javax.security.auth.message.MessagePolicy.TargetPolicy
Enclosing class:
MessagePolicy

public static class MessagePolicy.TargetPolicy
extends Object


Field Summary
protected  MessagePolicy.ProtectionPolicy protectionPolicy
           
protected  MessagePolicy.Target[] targets
           
 
Constructor Summary
MessagePolicy.TargetPolicy(MessagePolicy.Target[] targets, MessagePolicy.ProtectionPolicy protectionPolicy)
          Create a new TargetPolicy.
 
Method Summary
 MessagePolicy.ProtectionPolicy getProtectionPolicy()
          Get the URI that identifies the policy that applies to the targets.
 MessagePolicy.Target[] getTargets()
          Get the array of layer-specific target descriptors that identify the one or more message parts to which the specified message protection policy applies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protectionPolicy

protected MessagePolicy.ProtectionPolicy protectionPolicy

targets

protected MessagePolicy.Target[] targets
Constructor Detail

MessagePolicy.TargetPolicy

public MessagePolicy.TargetPolicy(MessagePolicy.Target[] targets,
                                  MessagePolicy.ProtectionPolicy protectionPolicy)
Create a new TargetPolicy.

Parameters:
targets -
protectionPolicy -
Method Detail

getProtectionPolicy

public MessagePolicy.ProtectionPolicy getProtectionPolicy()
Get the URI that identifies the policy that applies to the targets.

Returns:
a URI that identifies a source or recipient authentication policy.

getTargets

public MessagePolicy.Target[] getTargets()
Get the array of layer-specific target descriptors that identify the one or more message parts to which the specified message protection policy applies.

Returns:
an array of MessageTarget that identify targets within a message. This method returns null when the specified policy applies to the whole message (excluding any meta data added to the message to satisfy the policy). This method never returns a zero-length array.


Copyright © 2008 JBoss Inc.. All Rights Reserved.