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