public class EntitiesDescriptorContainer extends AbstractMetadataContainer<EntitiesDescriptor>
MetadataContainer
for EntityDescriptor
elements. This class is useful for an entity wishing to
publicize its metadata.DEFAULT_DESCRIPTOR_ID_SIZE, DEFAULT_UPDATE_FACTOR, DEFAULT_VALIDITY, descriptor, idSize, signatureCredentials, updateFactor, validity
Constructor and Description |
---|
EntitiesDescriptorContainer(EntitiesDescriptor descriptor,
X509Credential signatureCredentials)
Constructor assigning the encapsulated descriptor element.
|
Modifier and Type | Method and 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.
|
cloneDescriptor, getDescriptor, getIdSize, getUpdateFactor, getValidity, marshall, setIdSize, setUpdateFactor, setValidity, sign, update, updateRequired
public EntitiesDescriptorContainer(EntitiesDescriptor descriptor, X509Credential signatureCredentials)
descriptor
- the descriptor objectsignatureCredentials
- the signature credentials for signing the descriptor. May be null
, but then no signing will be
possibleprotected String getID(EntitiesDescriptor descriptor)
getID
in class AbstractMetadataContainer<EntitiesDescriptor>
descriptor
- the descriptorprotected void assignID(EntitiesDescriptor descriptor, String id)
assignID
in class AbstractMetadataContainer<EntitiesDescriptor>
descriptor
- the descriptorid
- the ID attribute valueprotected String getLogString(EntitiesDescriptor descriptor)
getLogString
in class AbstractMetadataContainer<EntitiesDescriptor>
descriptor
- the descriptorCopyright © 2018 Litsec AB. All rights reserved.