JBoss Java Authentication SPI for Containers 1.0 API 1.0.0.Final

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


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
 

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.

JBoss Java Authentication SPI for Containers 1.0 API 1.0.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.