public class IdpEntityDescriptorBuilder extends AbstractEntityDescriptorBuilder<IdpEntityDescriptorBuilder>
md:EntityDescription
(metadata) object for an Identity Provider.Modifier and Type | Field and Description |
---|---|
static String |
ASSURANCE_CERTIFICATION_ATTRIBUTE_NAME
The attribute name for the assurance certification attribute stored as an attribute in the entity attributes
extension.
|
static AttributeTemplate |
ASSURANCE_CERTIFICATION_ATTRIBUTE_TEMPLATE
The attribute template for the assurance certification attribute stored as an attribute in the entity attributes
extension.
|
ENTITY_CATEGORY_ATTRIBUTE_NAME, ENTITY_CATEGORY_TEMPLATE
Constructor and Description |
---|
IdpEntityDescriptorBuilder()
Constructor setting up the builder with no template.
|
IdpEntityDescriptorBuilder(EntityDescriptor template)
Constructor setting up the builder with a template
EntityDescriptor . |
IdpEntityDescriptorBuilder(InputStream resource)
Constructor setting up the builder with a template
EntityDescriptor that is read from a resource. |
Modifier and Type | Method and Description |
---|---|
IdpEntityDescriptorBuilder |
assuranceCertificationUris(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. |
IdpEntityDescriptorBuilder |
assuranceCertificationUris(String... uris) |
protected IdpEntityDescriptorBuilder |
getThis()
In order for us to be able to make chaining calls we need to return the concrete type of the builder.
|
protected boolean |
matchingSSODescriptorType(EntityDescriptor descriptor)
Checks that the SSO descriptor of the supplied
EntityDescriptor is of the correct type given the factory
bean type. |
IdpEntityDescriptorBuilder |
singleSignOnServices(List<SingleSignOnService> singleSignOnServices)
Adds
md:SingleSignOnService elements to the IDPSSODescriptor . |
IdpEntityDescriptorBuilder |
singleSignOnServices(SingleSignOnService... singleSignOnServices) |
protected SSODescriptor |
ssoDescriptor()
Returns the SSO role descriptor of the template entity descriptor.
|
IdpEntityDescriptorBuilder |
wantAuthnRequestsSigned(Boolean b)
Assigns the
WantAuthnRequestsSigned attribute of the md:IDPSSODescriptor element. |
cacheDuration, contactPersons, contactPersons, entityAttributesExtension, entityAttributesExtension, entityCategories, entityCategories, entityID, getObjectType, id, keyDescriptors, keyDescriptors, nameIDFormats, nameIDFormats, organization, singleLogoutServices, singleLogoutServices, uiInfoExtension, validUntil, validUntil
build, object
public static final String ASSURANCE_CERTIFICATION_ATTRIBUTE_NAME
public static final AttributeTemplate ASSURANCE_CERTIFICATION_ATTRIBUTE_TEMPLATE
public IdpEntityDescriptorBuilder()
EntityDescriptor
object is
created from data assigned using the builder.public IdpEntityDescriptorBuilder(InputStream resource) throws XMLParserException, UnmarshallingException, IOException
EntityDescriptor
that is read from a resource. Users of
the bean may now change, add or delete, the elements and attributes of the template object using the assignment
methods of the builder.resource
- the template resourceIOException
- if the resource can not be readUnmarshallingException
- for unmarshalling errorsXMLParserException
- for XML parsing errorspublic IdpEntityDescriptorBuilder(EntityDescriptor template) throws UnmarshallingException, MarshallingException
EntityDescriptor
. Users of the bean may now change, add
or delete, the elements and attributes of the template object using the assignment methods of the builder.template
- the templateUnmarshallingException
- for unmarshalling errorsMarshallingException
- for marshalling errorsprotected IdpEntityDescriptorBuilder getThis()
getThis
in class AbstractEntityDescriptorBuilder<IdpEntityDescriptorBuilder>
protected SSODescriptor ssoDescriptor()
ssoDescriptor
in class AbstractEntityDescriptorBuilder<IdpEntityDescriptorBuilder>
protected boolean matchingSSODescriptorType(EntityDescriptor descriptor)
EntityDescriptor
is of the correct type given the factory
bean type.
An entity descriptor that does not yet have an SSODescriptor element will also be regarded as a matching type.
matchingSSODescriptorType
in class AbstractEntityDescriptorBuilder<IdpEntityDescriptorBuilder>
descriptor
- the descriptor to checktrue
if the type is OK, and false
otherwisepublic IdpEntityDescriptorBuilder wantAuthnRequestsSigned(Boolean b)
WantAuthnRequestsSigned
attribute of the md:IDPSSODescriptor
element.b
- boolean (if null
, the attribute is not set)public IdpEntityDescriptorBuilder assuranceCertificationUris(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.
The method does not update any of the other attributes that may exist in the entity attributes extension.
uris
- the assurance URI values that should be addedAbstractEntityDescriptorBuilder.entityAttributesExtension(List)
public IdpEntityDescriptorBuilder assuranceCertificationUris(String... uris)
uris
- the assurance URI values that should be addedassuranceCertificationUris(List)
,
AbstractEntityDescriptorBuilder.entityAttributesExtension(List)
public IdpEntityDescriptorBuilder singleSignOnServices(List<SingleSignOnService> singleSignOnServices)
md:SingleSignOnService
elements to the IDPSSODescriptor
.singleSignOnServices
- single sign on service objects (cloned before assignment)public IdpEntityDescriptorBuilder singleSignOnServices(SingleSignOnService... singleSignOnServices)
singleSignOnServices
- single sign on service objects (cloned before assignment)AbstractEntityDescriptorBuilder.singleLogoutServices(List)
Copyright © 2018 Litsec AB. All rights reserved.