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 TypeMethodDescriptiongenerateAuthnRequest(String idpEntityID, String relayState, AuthnRequestGeneratorContext context) Generates a SAML authentication request message.generateAuthnRequest(EntityDescriptor idp, String relayState, AuthnRequestGeneratorContext context) Generates a SAML authentication request message.Gets the signing credential to be used when signing theAuthnRequestmessages.Gets the entityID for the service provider that this generator services.
-
Method Details
-
generateAuthnRequest
RequestHttpObject<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<AuthnRequest> generateAuthnRequest(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
X509Credential getSignCredential()Gets the signing credential to be used when signing theAuthnRequestmessages.- Returns:
- the signing credential, or null if no signing should be performed
-