A ClientAuthContext uses this class to communicate (at module initialization time) request and response message protection policies to its ClientAuthModule objects. A ServerAuthContext uses this class to communicate request and response message protection policies to its ServerAuthModule objects.
ClientAuthContext, ServerAuthContext, ClientAuthModule, ServerAuthModule
| Modifier and Type | Class and Description |
|---|---|
| public static interface | MessagePolicy.
This interface is used to represent message authentication policy. |
| public static interface | MessagePolicy.
This interface is used to represent and perform message targeting. |
| public static class | MessagePolicy.
This class defines the message protection policies for specific Targets. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private MessagePolicy. |
| Access | Constructor and Description |
|---|---|
| public | MessagePolicy(MessagePolicy.
an array of target policies. targetPolicies,A boolean value indicating whether the MessagePolicy is mandatory or optional. mandatory)Create a MessagePolicy instance with an array of target policies. |
| Modifier and Type | Method and Description |
|---|---|
| public MessagePolicy. | Returns: An array of target authentication policies, where each element describes an authentication policy and the parts of the message to which the authentication policy applies. This method returns null to indicate that no security operations should be performed on the messages to which the policy applies. This method never returns a zero-length array.Get the target policies that comprise the authentication policy. |
| public boolean | Returns: A boolean indicating whether the MessagePolicy is optional(false) or required(true).Get the MessagePolicy modifier. |
| mandatory | back to summary |
|---|---|
| private boolean mandatory | |
| targetPolicies | back to summary |
|---|---|
| private MessagePolicy. | |
| MessagePolicy | back to summary |
|---|---|
| public MessagePolicy(MessagePolicy. Create a MessagePolicy instance with an array of target policies.
| |
| getTargetPolicies | back to summary |
|---|---|
| public MessagePolicy. Get the target policies that comprise the authentication policy. When this method returns an array of target policies, the order of elements in the array represents the order that the corresponding message transformations or validations described by the target policies are to be performed by the authentication module.
| |
| isMandatory | back to summary |
|---|---|
| public boolean isMandatory() Get the MessagePolicy modifier.
| |
The internal state of a ProtectionPolicy object defines the message authentication requirements to be applied to the associated Target.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | AUTHENTICATE_CONTENT
The identifier for a ProtectionPolicy that indicates that the origin of data within the message is to be authenticated (that is, the message is to be protected such that its recipients can establish who defined the message content). |
| public static final String | AUTHENTICATE_RECIPIENT
The identifier for a ProtectionPolicy that indicates that the message recipient is to be authenticated. |
| public static final String | AUTHENTICATE_SENDER
The identifier for a ProtectionPolicy that indicates that the sending entity is to be authenticated. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: A String containing a policy identifier. This interface defines some policy identifier constants. Configuration systems may define and employ other policy identifiers values.Get the ProtectionPolicy identifier. |
| AUTHENTICATE_CONTENT | back to summary |
|---|---|
| public static final String AUTHENTICATE_CONTENT The identifier for a ProtectionPolicy that indicates that the origin of data within the message is to be authenticated (that is, the message is to be protected such that its recipients can establish who defined the message content). | |
| AUTHENTICATE_RECIPIENT | back to summary |
|---|---|
| public static final String AUTHENTICATE_RECIPIENT The identifier for a ProtectionPolicy that indicates that the message recipient is to be authenticated. | |
| AUTHENTICATE_SENDER | back to summary |
|---|---|
| public static final String AUTHENTICATE_SENDER The identifier for a ProtectionPolicy that indicates that the sending entity is to be authenticated. | |
| getID | back to summary |
|---|---|
| public String getID() Get the ProtectionPolicy identifier. An identifier may represent a conceptual protection policy (as is the case with the static identifiers defined within this interface) or it may identify a procedural policy expression or plan that may be more difficult to categorize in terms of a conceptual identifier.
| |
The internal state of a Target indicates whether it applies to the request or response message of a MessageInfo and to which components it applies within the identified message.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: An Object representing the target, or null when the target could not be found in the MessageInfo.The MessageInfo containing the request or response message from which the target is to be
obtained. messageInfo)Get the Object identified by the Target from the MessageInfo. |
| public void | put(MessageInfo
The MessageInfo containing the request or response message into which the object is to be put. messageInfo, Object The data to be put into the MessageInfo data)Put the Object into the MessageInfo at the location identified by the target. |
| public void | remove(MessageInfo
The MessageInfo containing the request or response message from which the target is to be removed. messageInfo)Remove the Object identified by the Target from the MessageInfo. |
| get | back to summary |
|---|---|
| public Object get(MessageInfo messageInfo) Get the Object identified by the Target from the MessageInfo.
| |
| put | back to summary |
|---|---|
| public void put(MessageInfo messageInfo, Object data) Put the Object into the MessageInfo at the location identified by the target.
| |
| remove | back to summary |
|---|---|
| public void remove(MessageInfo messageInfo) Remove the Object identified by the Target from the MessageInfo.
| |
This class is used to associate a message protection policy with targets within a message. Message targets are represented using an implementation of the Target interface matched to the message types in MessageInfo. The message protection policy is identified by an implementation of the ProtectionPolicy interface.
ClientAuthModule, ServerAuthModule
| Modifier and Type | Field and Description |
|---|---|
| private MessagePolicy. | |
| private MessagePolicy. |
| Access | Constructor and Description |
|---|---|
| public | TargetPolicy(MessagePolicy.
An array of Targets. This argument may be null. targets,The object that describes the message authentication policy that applies to the targets. protectionPolicyCreate a TargetPolicy instance with an array of Targets and with a ProtectionPolicy. |
| Modifier and Type | Method and Description |
|---|---|
| public MessagePolicy. | Returns: A ProtectionPolicy object that identifies the message authentication requirements that apply to the targets.Get the ProtectionPolicy that applies to the targets. |
| public MessagePolicy. | Returns: An array of Target that identify targets within a message. This method returns null when the specified policy applies to the whole message (excluding any metadata added to the message to satisfy the policy). This method never returns a zero-length array.Get the array of layer-specific target descriptors that identify the one or more message parts to which the specified message protection policy applies. |
| protectionPolicy | back to summary |
|---|---|
| private MessagePolicy. | |
| targets | back to summary |
|---|---|
| private MessagePolicy. | |
| TargetPolicy | back to summary |
|---|---|
| public TargetPolicy(MessagePolicy. Create a TargetPolicy instance with an array of Targets and with a ProtectionPolicy.
| |
| getProtectionPolicy | back to summary |
|---|---|
| public MessagePolicy. Get the ProtectionPolicy that applies to the targets.
| |
| getTargets | back to summary |
|---|---|
| public MessagePolicy. Get the array of layer-specific target descriptors that identify the one or more message parts to which the specified message protection policy applies.
| |