Package com.webmethods.caf.wsclient.saml
Interface IArtifactFactory
public interface IArtifactFactory
This encapsulates the access logic required to obtain a new SAML
Artifact from the SAML security provider. The artifact represents a timebound,
once-only-verifiable user token provided by the SAML security provider.
The logic should make sure to obtain a new value each time the
getArtifact() method is invoked.
For example, webMethods Portal provides a PortalArtifactFactory implementation of this
interface to manage artifacts within Portal
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionRetrieve an artifact String from the ArtifactFactoryGenerate an assertion using SIN service.getAssertion
(int samlVersion) getAssertion
(String user) getAssertion
(String user, int samlVersion) getAssertion
(String user, int samlVersion, boolean encode) Obtain the user name associated with the SAML artifact (usually the current user)validateAssertion
(String assertion) Validate a SAML assertion and returns the associated user id.validateSAMLResponse
(HttpServletRequest request, String samlRespParamName) Validate a SAML response and returns assertion attributes and its values in the authentication data object.
-
Field Details
-
SAML_VERSION_1_1
static final int SAML_VERSION_1_1- See Also:
-
SAML_VERSION_2_0
static final int SAML_VERSION_2_0- See Also:
-
NAME_ID
- See Also:
-
-
Method Details
-
getArtifact
String getArtifact()Retrieve an artifact String from the ArtifactFactory- Returns:
String
the SAML artifact.
-
getAssertion
String getAssertion()Generate an assertion using SIN service.- Returns:
String
the SAML artifact.
-
getAssertion
-
getAssertion
-
getAssertion
-
getAssertion
-
getAssertion
-
getAssertion
-
validateAssertion
Validate a SAML assertion and returns the associated user id.- Parameters:
assertion
- a SAML1.1/SAML2 assertion.- Returns:
- user id
-
validateSAMLResponse
Validate a SAML response and returns assertion attributes and its values in the authentication data object.- Returns:
- Map for each value under a named Attribute in an Assertion from the SAML Response
-
getAssociatedUser
String getAssociatedUser()Obtain the user name associated with the SAML artifact (usually the current user)- Returns:
String
the associated user name as String
-