javax.security.auth.message
Class MessagePolicy.TargetPolicy
java.lang.Object
javax.security.auth.message.MessagePolicy.TargetPolicy
- Enclosing class:
- MessagePolicy
public static class MessagePolicy.TargetPolicy
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
protectionPolicy
protected MessagePolicy.ProtectionPolicy protectionPolicy
targets
protected MessagePolicy.Target[] targets
MessagePolicy.TargetPolicy
public MessagePolicy.TargetPolicy(MessagePolicy.Target[] targets,
MessagePolicy.ProtectionPolicy protectionPolicy)
- Create a new TargetPolicy.
- Parameters:
targets
- protectionPolicy
-
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.