public interface IArtifactFactory
Modifier and Type | Field and Description |
---|---|
static String |
NAME_ID |
static int |
SAML_VERSION_1_1 |
static int |
SAML_VERSION_2_0 |
Modifier and Type | Method and Description |
---|---|
String |
getArtifact()
Retrieve an artifact String from the ArtifactFactory
|
String |
getAssertion()
Generate an assertion using SIN service.
|
String |
getAssertion(int samlVersion) |
String |
getAssertion(String user) |
String |
getAssertion(String user,
int samlVersion) |
String |
getAssertion(String user,
int samlVersion,
boolean encode) |
String |
getAssertion(String user,
String[] groups,
Map<String,String> roles) |
String |
getAssertion(String user,
String[] groups,
Map<String,String> roles,
Map<String,String> attributes) |
String |
getAssociatedUser()
Obtain the user name associated with the SAML artifact (usually the current user)
|
String |
validateAssertion(String assertion)
Validate a SAML assertion and returns the associated user id.
|
Map<String,String> |
validateSAMLResponse(HttpServletRequest request,
String samlRespParamName)
Validate a SAML response and returns assertion attributes and its values in the authentication data object.
|
static final int SAML_VERSION_1_1
static final int SAML_VERSION_2_0
static final String NAME_ID
String getArtifact()
String
the SAML artifact.String getAssertion()
String
the SAML artifact.String getAssertion(int samlVersion)
String getAssertion(String user, String[] groups, Map<String,String> roles, Map<String,String> attributes)
String validateAssertion(String assertion)
assertion
- a SAML1.1/SAML2 assertion.Map<String,String> validateSAMLResponse(HttpServletRequest request, String samlRespParamName)
{@link
- HttpServletRequest} request