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:
net.shibboleth.shared.component.Component
,net.shibboleth.shared.component.DestructableComponent
,net.shibboleth.shared.component.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
ConstructorDescriptionDefaultAuthnRequestGenerator
(String spEntityID, org.opensaml.security.x509.X509Credential signCredential, org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) Constructor.DefaultAuthnRequestGenerator
(org.opensaml.saml.saml2.metadata.EntityDescriptor spMetadata, org.opensaml.security.x509.X509Credential signCredential, org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensaml.saml.saml2.metadata.EntityDescriptor
getIdpMetadata
(String idpEntityID) Gets the IdP metadata for the given entityID.protected org.opensaml.saml.metadata.resolver.MetadataResolver
Gets the metadata resolver that this generator uses to find IdP (and SP) metadata.protected org.opensaml.saml.saml2.metadata.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, org.opensaml.security.x509.X509Credential signCredential, org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) Constructor.- Parameters:
spEntityID
- the SP entityIDsignCredential
- the signing credentialmetadataResolver
- the metadata resolver
-
DefaultAuthnRequestGenerator
public DefaultAuthnRequestGenerator(org.opensaml.saml.saml2.metadata.EntityDescriptor spMetadata, org.opensaml.security.x509.X509Credential signCredential, org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) Constructor.- Parameters:
spMetadata
- the SP metadatasignCredential
- the signing credentialmetadataResolver
- the metadata resolver
-
-
Method Details
-
getMetadataResolver
protected org.opensaml.saml.metadata.resolver.MetadataResolver getMetadataResolver()Gets the metadata resolver that this generator uses to find IdP (and SP) metadata.- Returns:
- a metadata resolver
-
getSpMetadata
protected org.opensaml.saml.saml2.metadata.EntityDescriptor 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
-