Package com.sun.identity.wss.policy
Class WSSPolicyManager
- java.lang.Object
-
- com.sun.identity.wss.policy.WSSPolicyManager
-
public class WSSPolicyManager extends Object
TheWSSPolicyManagerclass manages the WS-Security policy configuration and is used to convert fromProviderConfigto WS-Security Policy and vice versa.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInputPolicy(ProviderConfig providerConfig)Returns the input policy for the given web service provider configuration.static WSSPolicyManagergetInstance()StringgetOutputPolicy(ProviderConfig providerConfig)Returns the output policy for the given web service provider configuration.StringgetPolicy(ProviderConfig providerConfig)Returns the web service end point policy based on the provider configuration.StringgetSTSInputPolicy()Returns the input policy for the STS serviceStringgetSTSOutputPolicy()Returns the output policy for the STS serviceStringgetSTSPolicy()Returns the STS end point policy
-
-
-
Method Detail
-
getInstance
public static WSSPolicyManager getInstance()
-
getPolicy
public String getPolicy(ProviderConfig providerConfig) throws WSSPolicyException
Returns the web service end point policy based on the provider configuration.- Parameters:
providerConfig- the provider configuration for a given provider configuration.- Returns:
- the XML String representation of ws-security policy.
- Throws:
WSSPolicyException
-
getInputPolicy
public String getInputPolicy(ProviderConfig providerConfig) throws WSSPolicyException
Returns the input policy for the given web service provider configuration.- Parameters:
providerConfig- the provider configuration of a web service provider.- Returns:
- the XML String representation for the web service provider input policy.
- Throws:
WSSPolicyException
-
getOutputPolicy
public String getOutputPolicy(ProviderConfig providerConfig) throws WSSPolicyException
Returns the output policy for the given web service provider configuration.- Parameters:
providerConfig- the provider configuration of a web service provider.- Returns:
- the XML String representation of ws-security policy for the web service provider.
- Throws:
WSSPolicyException
-
getSTSPolicy
public String getSTSPolicy() throws WSSPolicyException
Returns the STS end point policy- Returns:
- the XML String representation of ws-security policy for the STS service.
- Throws:
WSSPolicyException
-
getSTSInputPolicy
public String getSTSInputPolicy() throws WSSPolicyException
Returns the input policy for the STS service- Returns:
- the XML String representation of ws-security policy for the STS service.
- Throws:
WSSPolicyException
-
getSTSOutputPolicy
public String getSTSOutputPolicy() throws WSSPolicyException
Returns the output policy for the STS service- Returns:
- the XML String representation of ws-security policy for the STS service.
- Throws:
WSSPolicyException
-
-