public class SAMLClient extends Object
SAMLClient
provides interfaces
to do Web and POST profile as specified by SAML specification. It
also provides methods to get Assertions based on Artifacts.Constructor and Description |
---|
SAMLClient() |
Modifier and Type | Method and Description |
---|---|
static List |
artifactQueryHandler(String[] arti,
String connecto)
This method is designed to get a list of assertion based on the input
AssertionArtifact (s). |
static void |
doWebArtifact(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String target)
This method is designed to do the SAML web-browser profile with
Artifact.
|
static void |
doWebPOST(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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.
|
static boolean |
setLocalFlag(URL url) |
public static void doWebArtifact(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String target) throws IOException, SAMLException
request
- HTTP Servlet Requestresponse
- HTTP Servlet Responsetarget
- A String representing the target URLIOException
- if an input or output exception occurs when
redirecting to service URL
SAMLException
- if SAML error occurs during the processpublic static void doWebPOST(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String target) throws IOException, SAMLException
request
- HTTP Servlet Requestresponse
- HTTP Servlet Responsetarget
- A String representing the target URLIOException
- 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 IOException, 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
artifactIOException
- 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 IOException, 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 artifactIOException
- if an input or output exception occurs when
connecting to SAML service URL
SAMLException
- if SAML error occurs during the processpublic static boolean setLocalFlag(URL url)
public static List artifactQueryHandler(String[] arti, String connecto) throws IOException, SAMLException
AssertionArtifact
(s).arti
- An array of StringIOException
- if an input or output exception occurs when
connecting to SAML service URL
SAMLException
- if SAML error occurs during the processCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.