public class EntityDescriptorContainer extends AbstractMetadataContainer<EntityDescriptor>
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 |
---|
EntityDescriptorContainer(EntityDescriptor descriptor,
X509Credential signatureCredentials)
Constructor assigning the encapsulated descriptor element.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assignID(EntityDescriptor descriptor,
String id)
Assigns the supplied id to the ID attribute of the descriptor.
|
protected String |
getID(EntityDescriptor descriptor)
Returns the ID attribute of the supplied descriptor.
|
protected String |
getLogString(EntityDescriptor descriptor)
Returns the entityID attribute.
|
cloneDescriptor, getDescriptor, getIdSize, getUpdateFactor, getValidity, marshall, setIdSize, setUpdateFactor, setValidity, sign, update, updateRequired
public EntityDescriptorContainer(EntityDescriptor 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(EntityDescriptor descriptor)
getID
in class AbstractMetadataContainer<EntityDescriptor>
descriptor
- the descriptorprotected void assignID(EntityDescriptor descriptor, String id)
assignID
in class AbstractMetadataContainer<EntityDescriptor>
descriptor
- the descriptorid
- the ID attribute valueprotected String getLogString(EntityDescriptor descriptor)
getLogString
in class AbstractMetadataContainer<EntityDescriptor>
descriptor
- the descriptorCopyright © 2018 Litsec AB. All rights reserved.