This interface is used to represent message authentication policy.
The internal state of a ProtectionPolicy object defines the message authentication requirements to be applied to the associated Target.
395396397398399400401402403404405406407408409410
} return null; } // check whether a policy is set MessagePolicy reqP = (requestPolicy != null || responsePolicy != null) ? requestPolicy : idEntry.requestPolicy; //default; MessagePolicy respP = (requestPolicy != null || responsePolicy != null) ? responsePolicy : idEntry.responsePolicy; //default; // optimization: if policy was not set, return null
99910001001100210031004100510061007100810091010
policies = AuthMessagePolicy.getHttpServletPolicies (authContextID); } MessagePolicy requestPolicy = policies[0]; MessagePolicy responsePolicy = policies[1]; Entry entry = getEntry(layer, providerID, requestPolicy, responsePolicy, type); return (entry != null)?
194195196197198199200201202203
}) ); } } return new MessagePolicy( targetPolicies.toArray( new TargetPolicy[targetPolicies.size()]), mandatory); }
201202203204205206207208209210211
new TargetPolicy[targetPolicies.size()]), mandatory); } public static MessagePolicy getMessagePolicy(ProtectionDescriptor pd) { MessagePolicy messagePolicy = null; if (pd != null) { String source = pd.getAttributeValue (ProtectionDescriptor.AUTH_SOURCE); String recipient = pd.getAttributeValue (ProtectionDescriptor.AUTH_RECIPIENT);
230231232233234235236237238239240241
public static MessagePolicy[] getSOAPPolicies( MessageSecurityBindingDescriptor binding, String operation, boolean onePolicy) { MessagePolicy requestPolicy = null; MessagePolicy responsePolicy = null; if (binding != null) { ArrayList msgSecDescs = null; String layer = binding.getAttributeValue (MessageSecurityBindingDescriptor.AUTH_LAYER);
310311312313314315316317318319320321
throws IOException { String id = pConfig.getProviderId(); String type = pConfig.getProviderType(); String moduleClass = pConfig.getClassName(); MessagePolicy requestPolicy = parsePolicy(pConfig.getRequestPolicy()); MessagePolicy responsePolicy = parsePolicy(pConfig.getResponsePolicy()); // get the module options Map options = new HashMap(); String key;
244245246247248249250251252253254255