Package com.sun.xml.wss.impl.config
Class ApplicationSecurityConfiguration
java.lang.Object
com.sun.xml.wss.impl.policy.SecurityPolicyContainer
com.sun.xml.wss.impl.config.ApplicationSecurityConfiguration
- All Implemented Interfaces:
SecurityPolicy
Represents an XWS-Security configuration object, corresponding to the
<xwss:JAXRPCSecurity> element (as defined in XWS-Security,
configuration schema, xwssconfig.xsd).-
Field Summary
Fields inherited from class com.sun.xml.wss.impl.policy.SecurityPolicyContainer
_ctx2PolicyMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the SecurityEnvironment CallbackHandlergetType()Get the type of the policy.booleanvoidhasOperationPolicies(boolean flag) voidinit()booleanisBSP()voidisBSP(boolean flag) booleanisEmpty()booleanvoidisOptimized(boolean optimize) booleanvoidresetMustUnderstand(boolean value) booleanvoidretainSecurityHeader(boolean arg) voidsetSecurityEnvironmentHandler(String handlerClassName) set the SecurityEnvironment CallbackHandlervoidsetSecurityPolicy(StaticPolicyContext ctx, SecurityPolicy policy) Associate more than one SecurityPolicy with a StaticPolicyContextvoidsingleServiceNoPorts(boolean flag) booleanuseCache()voiduseCache(boolean flag) Methods inherited from class com.sun.xml.wss.impl.policy.SecurityPolicyContainer
getAllContexts, getSecurityPolicies, getSecurityPolicies
-
Constructor Details
-
ApplicationSecurityConfiguration
public ApplicationSecurityConfiguration() -
ApplicationSecurityConfiguration
Constructor- Parameters:
handlerClassName- the class name of the SecurityEnvironment CallbackHandler
-
-
Method Details
-
setSecurityEnvironmentHandler
set the SecurityEnvironment CallbackHandler- Parameters:
handlerClassName- the class name of the SecurityEnvironment Callback Handler
-
getSecurityEnvironmentHandler
get the SecurityEnvironment CallbackHandler- Returns:
- the class name of the SecurityEnvironment CallbackHandler
-
getAllTopLevelApplicationSecurityConfigurations
-
getAllPolicies
-
getAllSenderPolicies
-
getAllReceiverPolicies
-
isEmpty
public boolean isEmpty()- Returns:
- true of if the Configuration is Empty
-
isBSP
public boolean isBSP() -
isBSP
public void isBSP(boolean flag) -
useCache
public boolean useCache() -
useCache
public void useCache(boolean flag) -
retainSecurityHeader
public boolean retainSecurityHeader() -
retainSecurityHeader
public void retainSecurityHeader(boolean arg) -
getSecurityConfiguration
-
hasOperationPolicies
public boolean hasOperationPolicies() -
hasOperationPolicies
public void hasOperationPolicies(boolean flag) -
singleServiceNoPorts
public void singleServiceNoPorts(boolean flag) -
resetMustUnderstand
public void resetMustUnderstand(boolean value) -
resetMustUnderstand
public boolean resetMustUnderstand() -
getType
Description copied from interface:SecurityPolicyGet the type of the policy.Implementation Note: Useful to avoid instanceof checks and String.equals checks
- Specified by:
getTypein interfaceSecurityPolicy- Overrides:
getTypein classSecurityPolicyContainer- Returns:
- the type of the policy
-
init
public void init() -
setSecurityPolicy
Associate more than one SecurityPolicy with a StaticPolicyContext- Overrides:
setSecurityPolicyin classSecurityPolicyContainer- Parameters:
ctx- StaticPolicyContextpolicy- SecurityPolicy
-
isOptimized
public void isOptimized(boolean optimize) -
isOptimized
public boolean isOptimized()
-