Interface AuthnRequestGenerator
- All Known Implementing Classes:
AbstractAuthnRequestGenerator
,DefaultAuthnRequestGenerator
public interface AuthnRequestGenerator
Interface for generating
AuthnRequest
messages.- Author:
- Martin Lindström (martin@idsec.se)
-
Method Summary
Modifier and TypeMethodDescriptionRequestHttpObject
<org.opensaml.saml.saml2.core.AuthnRequest> generateAuthnRequest
(String idpEntityID, String relayState, AuthnRequestGeneratorContext context) Generates a SAML authentication request message.RequestHttpObject
<org.opensaml.saml.saml2.core.AuthnRequest> generateAuthnRequest
(org.opensaml.saml.saml2.metadata.EntityDescriptor idp, String relayState, AuthnRequestGeneratorContext context) Generates a SAML authentication request message.org.opensaml.security.x509.X509Credential
Gets the signing credential to be used when signing theAuthnRequest
messages.Gets the entityID for the service provider that this generator services.
-
Method Details
-
generateAuthnRequest
RequestHttpObject<org.opensaml.saml.saml2.core.AuthnRequest> generateAuthnRequest(String idpEntityID, String relayState, AuthnRequestGeneratorContext context) throws RequestGenerationException Generates a SAML authentication request message.- Parameters:
idpEntityID
- the entityID of the IdP that we should send the request torelayState
- the RelayState to include (may be null)context
- the generator context (may be null)- Returns:
- a request object
- Throws:
RequestGenerationException
- for errors during request generation
-
generateAuthnRequest
RequestHttpObject<org.opensaml.saml.saml2.core.AuthnRequest> generateAuthnRequest(org.opensaml.saml.saml2.metadata.EntityDescriptor idp, String relayState, AuthnRequestGeneratorContext context) throws RequestGenerationException Generates a SAML authentication request message.- Parameters:
idp
- the metadata for the IdP that we should send the request torelayState
- the RelayState to include (may be null)context
- the generator context (may be null)- Returns:
- a request object
- Throws:
RequestGenerationException
- for errors during request generation
-
getSpEntityID
String getSpEntityID()Gets the entityID for the service provider that this generator services.- Returns:
- the SP entityID
-
getSignCredential
org.opensaml.security.x509.X509Credential getSignCredential()Gets the signing credential to be used when signing theAuthnRequest
messages.- Returns:
- the signing credential, or null if no signing should be performed
-