|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.SAMLClient
public class SAMLClient
The class SAMLClient
provides interfaces
to do Web and POST profile as specified by SAML specification. It
also provides methods to get Assertions based on Artifacts.
Method Summary | |
---|---|
static void |
doWebArtifact(HttpServletRequest request,
HttpServletResponse response,
String target)
This method is designed to do the SAML web-browser profile with Artifact. |
static void |
doWebPOST(HttpServletRequest request,
HttpServletResponse response,
String target)
This method is designed to do the SAML web-browser POST profile. |
static Assertion |
getAssertionByArtifact(AssertionArtifact artifact)
This method returns the Assertion for the corresponding artifact. |
static Assertion |
getAssertionByArtifact(String artifact)
This method returns the Assertion for the corresponding artifact. |
Method Detail |
---|
public static void doWebArtifact(HttpServletRequest request, HttpServletResponse response, String target) throws SAMLException
request
- HTTP Servlet Requestresponse
- HTTP Servlet Responsetarget
- A String representing the target URL
IOException
- if an input or output exception occurs when
redirecting to service URL
SAMLException
- if SAML error occurs during the processpublic static void doWebPOST(HttpServletRequest request, HttpServletResponse response, String target) throws SAMLException
request
- HTTP Servlet Requestresponse
- HTTP Servlet Responsetarget
- A String representing the target URL
IOException
- if an input or output exception occurs when
redirecting to service URL
SAMLException
- if SAML error occurs during the processpublic static Assertion getAssertionByArtifact(AssertionArtifact artifact) throws SAMLException
ArtifactQuery
SAML message to the
destination identified by the source ID in the artifact and
returns the Assertion contained in the SAML response message.
artifact
- An AssertionArtifact
representing the
artifact
IOException
- if an input or output exception occurs when
connecting to SAML service URL
SAMLException
- if SAML error occurs during the processpublic static Assertion getAssertionByArtifact(String artifact) throws SAMLException
ArtifactQuery
SAML message to the destination
identified by the source ID in the artifact and returns the Assertion
contained in the SAML response message.
artifact
- A String representing the artifact
IOException
- if an input or output exception occurs when
connecting to SAML service URL
SAMLException
- if SAML error occurs during the process
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |