Package com.sun.identity.saml2.profile
Class AssertionIDRequestUtil
- java.lang.Object
-
- com.sun.identity.saml2.profile.AssertionIDRequestUtil
-
public class AssertionIDRequestUtil extends Object
This class provides methods to send or processAssertionIDRequest.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResponseprocessAssertionIDRequest(AssertionIDRequest assertionIDRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String samlAuthorityEntityID, String role, String realm)This method processes theAssertionIDRequestcoming from a requester.static voidprocessAssertionIDRequestURI(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String samlAuthorityEntityID, String role, String realm)Gets assertion ID from URI and returns assertion if found.static ResponsesendAssertionIDRequest(AssertionIDRequest assertionIDRequest, String samlAuthorityEntityID, String role, String realm, String binding)Sends theAssertionIDRequestto specifiied Assertion ID Request Service and returnsResponsecoming from the Assertion ID Request Service.static AssertionsendAssertionIDRequestURI(String assertionID, String samlAuthorityEntityID, String role, String realm)Sends the Assertion ID to specifiied Assertion ID Request Service and returnsAssertioncoming from the Assertion ID Request Service.
-
-
-
Method Detail
-
sendAssertionIDRequest
public static Response sendAssertionIDRequest(AssertionIDRequest assertionIDRequest, String samlAuthorityEntityID, String role, String realm, String binding) throws SAML2Exception
Sends theAssertionIDRequestto specifiied Assertion ID Request Service and returnsResponsecoming from the Assertion ID Request Service.- Parameters:
assertionIDRequest- theAssertionIDRequestobjectsamlAuthorityEntityID- entity ID of SAML authorityrole- SAML authority role, for example,SAML2Constants.ATTR_AUTH_ROLE,SAML2Constants.AUTHN_AUTH_ROLEorSAML2Constants.IDP_ROLErealm- the realm of hosted entitybinding- the binding- Returns:
- the
Responseobject - Throws:
SAML2Exception- if the operation is not successful
-
sendAssertionIDRequestURI
public static Assertion sendAssertionIDRequestURI(String assertionID, String samlAuthorityEntityID, String role, String realm) throws SAML2Exception
Sends the Assertion ID to specifiied Assertion ID Request Service and returnsAssertioncoming from the Assertion ID Request Service.- Parameters:
assertionID- the asssertionID objectsamlAuthorityEntityID- entity ID of SAML authorityrole- SAML authority role, for example,SAML2Constants.ATTR_AUTH_ROLE,SAML2Constants.AUTHN_AUTH_ROLEorSAML2Constants.IDP_ROLErealm- the realm of hosted entity- Returns:
- the
Assertionobject - Throws:
SAML2Exception- if the operation is not successful
-
processAssertionIDRequestURI
public static void processAssertionIDRequestURI(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String samlAuthorityEntityID, String role, String realm) throws IOExceptionGets assertion ID from URI and returns assertion if found.- Parameters:
request- theHttpServletRequestobjectresponse- theHttpServletResponseobjectsamlAuthorityEntityID- entity ID of SAML authorityrole- SAML authority rolerealm- the realm of hosted entity- Throws:
IOException- if response can't be sent
-
processAssertionIDRequest
public static Response processAssertionIDRequest(AssertionIDRequest assertionIDRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String samlAuthorityEntityID, String role, String realm) throws SAML2Exception
This method processes theAssertionIDRequestcoming from a requester.- Parameters:
assertionIDRequest- theAssertionIDRequestobjectrequest- theHttpServletRequestobjectresponse- theHttpServletResponseobjectsamlAuthorityEntityID- entity ID of SAML authorityrole- the role of SAML authorityrealm- the realm of SAML authority- Returns:
- the
Responseobject - Throws:
SAML2Exception- if the operation is not successful
-
-