public class SAMLClient extends Object
| Constructor and Description |
|---|
SAMLClient(SAMLConfig config)
Create a new SAMLClient, using the IdPConfig for endpoints and
validation.
|
| Modifier and Type | Method and Description |
|---|---|
org.opensaml.saml2.core.AuthnRequest |
createAuthnRequest(String requestId) |
String |
generateAuthnRequest(String requestId)
Create a new AuthnRequest suitable for sending to an HTTPRedirect binding
endpoint on the IdP.
|
IdPConfig |
getIdPConfig()
Get the configured IdpConfig.
|
SPConfig |
getSPConfig()
Get the configured SPConfig.
|
AttributeSet |
validateResponseGET(String queryString) |
AttributeSet |
validateResponsePOST(String _authnResponse)
Check an authnResponse and return the subject if validation succeeds.
|
public SAMLClient(SAMLConfig config) throws SAMLException
config - SAMLExceptionpublic IdPConfig getIdPConfig()
public SPConfig getSPConfig()
public org.opensaml.saml2.core.AuthnRequest createAuthnRequest(String requestId)
public String generateAuthnRequest(String requestId) throws SAMLException
requestId - random generated RequestIdSAMLExceptionpublic AttributeSet validateResponsePOST(String _authnResponse) throws SAMLException
_authnResponse - a base64-encoded AuthnResponse from the SPSAMLException - if validation failed.public AttributeSet validateResponseGET(String queryString) throws SAMLException
SAMLExceptionCopyright © 2015. All rights reserved.