Class WSFederationClient
- java.lang.Object
-
- com.sun.identity.wsfederation.client.WSFederationClient
-
public class WSFederationClient extends Object
This classWSFederationClientis used to retrieve the SAML Assertion remotely for a given user session.
-
-
Constructor Summary
Constructors Constructor Description WSFederationClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetUserSAMLAssertion(String tokenID, String entityID, String entityRole)Returns the user SAML Assertion for a given session established by WS-Federation protocol.static StringgetUserSAMLAssertion(String tokenID, String url, String entityID, String entityRole)Returns the user SAML Assertion for a given session established by WS-Federation protocol.
-
-
-
Method Detail
-
getUserSAMLAssertion
public static String getUserSAMLAssertion(String tokenID, String entityID, String entityRole) throws WSFederationException
Returns the user SAML Assertion for a given session established by WS-Federation protocol.- Parameters:
tokenID- the URL encoded session string.entityID- the entityID of the federation providerentityRole- the entity role of the federation profile. Possible values are "RP" or "IP".- Returns:
- the user's SAML assertion xml string.
- Throws:
WSFederationException
-
getUserSAMLAssertion
public static String getUserSAMLAssertion(String tokenID, String url, String entityID, String entityRole) throws WSFederationException
Returns the user SAML Assertion for a given session established by WS-Federation protocol.- Parameters:
tokenID- the URL encoded session string.url- the endpoint where the assertion could be obtainedentityID- the entityID of the federation providerentityRole- the entity role of the federation profile. Possible values are "RP" or "IP".- Returns:
- the user's SAML assertion xml string.
- Throws:
WSFederationException
-
-