Package com.sun.identity.wss.policy
Class WSSPolicyManager
- java.lang.Object
-
- com.sun.identity.wss.policy.WSSPolicyManager
-
public class WSSPolicyManager extends Object
TheWSSPolicyManager
class manages the WS-Security policy configuration and is used to convert fromProviderConfig
to WS-Security Policy and vice versa.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInputPolicy(ProviderConfig providerConfig)
Returns the input policy for the given web service provider configuration.static WSSPolicyManager
getInstance()
String
getOutputPolicy(ProviderConfig providerConfig)
Returns the output policy for the given web service provider configuration.String
getPolicy(ProviderConfig providerConfig)
Returns the web service end point policy based on the provider configuration.String
getSTSInputPolicy()
Returns the input policy for the STS serviceString
getSTSOutputPolicy()
Returns the output policy for the STS serviceString
getSTSPolicy()
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
-
-