Class EntitiesDescriptorContainer
java.lang.Object
se.swedenconnect.opensaml.saml2.metadata.AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntitiesDescriptor>
se.swedenconnect.opensaml.saml2.metadata.EntitiesDescriptorContainer
- All Implemented Interfaces:
MetadataContainer<org.opensaml.saml.saml2.metadata.EntitiesDescriptor>
public class EntitiesDescriptorContainer
extends AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntitiesDescriptor>
A
MetadataContainer
for EntityDescriptor
elements. This class is useful for an entity wishing to
publicize its metadata.- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
Fields inherited from class se.swedenconnect.opensaml.saml2.metadata.AbstractMetadataContainer
DEFAULT_DESCRIPTOR_ID_SIZE, DEFAULT_UPDATE_FACTOR, DEFAULT_VALIDITY, descriptor, idSize, signatureCredentials, signingConfiguration, updateFactor, validity
-
Constructor Summary
ConstructorDescriptionEntitiesDescriptorContainer
(org.opensaml.saml.saml2.metadata.EntitiesDescriptor descriptor, org.opensaml.security.x509.X509Credential signatureCredentials) Constructor assigning the encapsulated descriptor element. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Assigns the supplied id to the ID attribute of the descriptor.protected String
getID
(org.opensaml.saml.saml2.metadata.EntitiesDescriptor descriptor) Returns the ID attribute of the supplied descriptor.protected String
getLogString
(org.opensaml.saml.saml2.metadata.EntitiesDescriptor descriptor) Returns the Name attribute.Methods inherited from class se.swedenconnect.opensaml.saml2.metadata.AbstractMetadataContainer
cloneDescriptor, getDescriptor, getIdSize, getUpdateFactor, getValidity, marshall, setIdSize, setSigningConfiguration, setUpdateFactor, setValidity, sign, update, updateRequired
-
Constructor Details
-
EntitiesDescriptorContainer
public EntitiesDescriptorContainer(org.opensaml.saml.saml2.metadata.EntitiesDescriptor descriptor, org.opensaml.security.x509.X509Credential signatureCredentials) Constructor assigning the encapsulated descriptor element.- Parameters:
descriptor
- the descriptor objectsignatureCredentials
- the signature credentials for signing the descriptor. May be null, but then no signing will be possible
-
-
Method Details
-
getID
Returns the ID attribute of the supplied descriptor.- Specified by:
getID
in classAbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntitiesDescriptor>
- Parameters:
descriptor
- the descriptor- Returns:
- the ID attribute
-
assignID
Assigns the supplied id to the ID attribute of the descriptor.- Specified by:
assignID
in classAbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntitiesDescriptor>
- Parameters:
descriptor
- the descriptorid
- the ID attribute value
-
getLogString
Returns the Name attribute.- Specified by:
getLogString
in classAbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntitiesDescriptor>
- Parameters:
descriptor
- the descriptor- Returns:
- the log string
-