Class DefaultAuthnRequestGenerator
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
se.swedenconnect.opensaml.saml2.request.AbstractAuthnRequestGenerator
se.swedenconnect.opensaml.saml2.request.DefaultAuthnRequestGenerator
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,AuthnRequestGenerator
A default implementation of the
AuthnRequestGenerator
where a metadata resolver is used to locate metadata.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuthnRequestGenerator
(String spEntityID, X509Credential signCredential, MetadataResolver metadataResolver) Constructor.DefaultAuthnRequestGenerator
(EntityDescriptor spMetadata, X509Credential signCredential, MetadataResolver metadataResolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityDescriptor
getIdpMetadata
(String idpEntityID) Gets the IdP metadata for the given entityID.protected MetadataResolver
Gets the metadata resolver that this generator uses to find IdP (and SP) metadata.protected EntityDescriptor
Gets the metadata for the SP that this generator services.Methods inherited from class se.swedenconnect.opensaml.saml2.request.AbstractAuthnRequestGenerator
addExtensions, addScoping, buildRequestHttpObject, doInitialize, generateAuthnRequest, generateAuthnRequest, getAssuranceCertificationUris, getBinding, getPossibleAssertionConsumerServices, getSignCredential, getSingleSignOnService, getSpEntityID
Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Constructor Details
-
DefaultAuthnRequestGenerator
public DefaultAuthnRequestGenerator(String spEntityID, X509Credential signCredential, MetadataResolver metadataResolver) Constructor.- Parameters:
spEntityID
- the SP entityIDsignCredential
- the signing credentialmetadataResolver
- the metadata resolver
-
DefaultAuthnRequestGenerator
public DefaultAuthnRequestGenerator(EntityDescriptor spMetadata, X509Credential signCredential, MetadataResolver metadataResolver) Constructor.- Parameters:
spMetadata
- the SP metadatasignCredential
- the signing credentialmetadataResolver
- the metadata resolver
-
-
Method Details
-
getMetadataResolver
Gets the metadata resolver that this generator uses to find IdP (and SP) metadata.- Returns:
- a metadata resolver
-
getSpMetadata
Gets the metadata for the SP that this generator services.- Specified by:
getSpMetadata
in classAbstractAuthnRequestGenerator
- Returns:
- the SP metadata, or null if no metadata is found
-
getIdpMetadata
Gets the IdP metadata for the given entityID.- Overrides:
getIdpMetadata
in classAbstractAuthnRequestGenerator
- Parameters:
idpEntityID
- the entityID for the IdP- Returns:
- the metadata or null if no metadata could be found
-