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 EntityDescriptorgetIdpMetadata(String idpEntityID) Gets the IdP metadata for the given entityID.protected MetadataResolverGets the metadata resolver that this generator uses to find IdP (and SP) metadata.protected EntityDescriptorGets 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, getSpEntityIDMethods 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:
getSpMetadatain classAbstractAuthnRequestGenerator- Returns:
- the SP metadata, or null if no metadata is found
-
getIdpMetadata
Gets the IdP metadata for the given entityID.- Overrides:
getIdpMetadatain classAbstractAuthnRequestGenerator- Parameters:
idpEntityID- the entityID for the IdP- Returns:
- the metadata or null if no metadata could be found
-