public class IdpEntityDescriptorFactoryBean extends AbstractEntityDescriptorFactoryBean<IdpEntityDescriptorBuilder>
EntityDescriptor
objects for Identity Provider metadata using setter
methods, and optionally a template object.
When a template object is used, the factory is initialized using the
AbstractEntityDescriptorBuilder.AbstractEntityDescriptorBuilder(java.io.InputStream)
or
AbstractEntityDescriptorBuilder.AbstractEntityDescriptorBuilder(EntityDescriptor)
constructors. The user may
later change, or add, any of the elements and attributes of the template object using the assignment methods.
Note that no Signature will be included.
IdpEntityDescriptorBuilder
Constructor and Description |
---|
IdpEntityDescriptorFactoryBean()
Constructor setting up the factory with no template.
|
IdpEntityDescriptorFactoryBean(EntityDescriptor template)
Constructor setting up the factory with a template
EntityDescriptor . |
IdpEntityDescriptorFactoryBean(org.springframework.core.io.Resource resource)
Constructor setting up the factory with a template
EntityDescriptor that is read from a resource. |
Modifier and Type | Method and Description |
---|---|
protected IdpEntityDescriptorBuilder |
_builder()
Returns the internal builder of the correct type.
|
protected AbstractSAMLObjectBuilder<EntityDescriptor> |
builder()
Returns the builder.
|
void |
setAssuranceCertificationUris(List<String> uris)
Adds a set of URIs to the assurance certification attribute (
urn:oasis:names:tc:SAML:attribute:assurance-certification ) that is part of the
mdattr:EntityAttributes element that is part of the metadata extension element. |
void |
setSingleSignOnServices(List<SingleSignOnService> singleSignOnServices)
Adds
md:SingleSignOnService elements to the IDPSSODescriptor . |
void |
setWantAuthnRequestsSigned(Boolean b)
Assigns the
WantAuthnRequestsSigned attribute of the md:IDPSSODescriptor element. |
getObjectType, setCacheDuration, setContactPersons, setEntityAttributesExtension, setEntityCategories, setEntityID, setID, setKeyDescriptors, setNameIDFormats, setOrganization, setSingleLogoutServices, setUiInfoExtension, setValidUntil, setValidUntil
createInstance, localizedStringListToVarArgs, stringListToVarArgs, toVarArgs
public IdpEntityDescriptorFactoryBean()
EntityDescriptor
object is
created from data assigned using set methods.public IdpEntityDescriptorFactoryBean(org.springframework.core.io.Resource resource) throws XMLParserException, UnmarshallingException, IOException
EntityDescriptor
that is read from a resource. Users of
the bean may now change, add or delete (by using null
values), the elements and attributes of the template
object using the setter methods.resource
- the template resourceIOException
- if the resource can not be readUnmarshallingException
- for unmarshalling errorsXMLParserException
- for XML parsing errorspublic IdpEntityDescriptorFactoryBean(EntityDescriptor template) throws UnmarshallingException, MarshallingException
EntityDescriptor
. Users of the bean may now change, add
or delete (by using null
values), the elements and attributes of the template object using the setter
methods.template
- the templateUnmarshallingException
- for unmarshalling errorsMarshallingException
- for marshalling errorspublic void setWantAuthnRequestsSigned(Boolean b)
WantAuthnRequestsSigned
attribute of the md:IDPSSODescriptor
element.b
- boolean (if null
, the attribute is not set)public void setAssuranceCertificationUris(List<String> uris)
urn:oasis:names:tc:SAML:attribute:assurance-certification
) that is part of the
mdattr:EntityAttributes
element that is part of the metadata extension element.uris
- the assurance URI values that should be addedAbstractEntityDescriptorFactoryBean.setEntityAttributesExtension(List)
public void setSingleSignOnServices(List<SingleSignOnService> singleSignOnServices)
md:SingleSignOnService
elements to the IDPSSODescriptor
.singleSignOnServices
- single sign on service objects (cloned before assignment)protected IdpEntityDescriptorBuilder _builder()
_builder
in class AbstractEntityDescriptorFactoryBean<IdpEntityDescriptorBuilder>
protected AbstractSAMLObjectBuilder<EntityDescriptor> builder()
builder
in class AbstractSAMLObjectBuilderFactoryBean<EntityDescriptor>
Copyright © 2018 Litsec AB. All rights reserved.