Package com.sun.identity.wss.sts
Class STSUtils
- java.lang.Object
-
- com.sun.identity.wss.sts.STSUtils
-
public class STSUtils extends Object
This class provides utility classes for STS Service and clients
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceBundlebundlestatic Debugdebug
-
Constructor Summary
Constructors Constructor Description STSUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jakarta.xml.soap.SOAPMessagecreateSOAPMessage(InputStream is)static MapgetAgentAttributes(String endpoint, String endPointAtrrName, Set attrNames, String agentType)Returns the WSP agent attributes for a given end point.static StringgetAppliesTo(Element element)static MapgetSTSSAMLAttributes(FAMSTSConfiguration stsConfig)static jakarta.xml.soap.SOAPMessageprepareSOAPMessage(String url, String wstVersion)
-
-
-
Field Detail
-
debug
public static Debug debug
-
bundle
public static ResourceBundle bundle
-
-
Method Detail
-
getAgentAttributes
public static Map getAgentAttributes(String endpoint, String endPointAtrrName, Set attrNames, String agentType)
Returns the WSP agent attributes for a given end point.- Parameters:
endpoint- the end point that is used in finding the Agent configuration.endPointAtrrName- the attribute name for the service End Point attribute.attrNames- the attribute names set that is used to retrieve their values. If the attribute set is null, then it will find all the attribute values.agentType- the type of the agent for e.g. ProviderConfig.WSC or ProviderConfig.WSP- Returns:
- Map the attribute values for a given attribute set and with a given search pattern. If there is any exception, it returns an empty map.
-
getSTSSAMLAttributes
public static Map getSTSSAMLAttributes(FAMSTSConfiguration stsConfig)
-
prepareSOAPMessage
public static jakarta.xml.soap.SOAPMessage prepareSOAPMessage(String url, String wstVersion) throws FAMSTSException
- Throws:
FAMSTSException
-
createSOAPMessage
public static jakarta.xml.soap.SOAPMessage createSOAPMessage(InputStream is) throws FAMSTSException
- Throws:
FAMSTSException
-
-