public class IDFFMetaManager extends Object
IDFFMetaManager
provides methods to manage the Service and
Identity Provider and Affiliation Metadata ,
the Entity Configuration.Modifier and Type | Field and Description |
---|---|
static String |
NAME_META_ALIAS_IN_URI
Constant used to identify meta alias.
|
Constructor and Description |
---|
IDFFMetaManager(Object session)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createEntityConfig(String realm,
com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement entityConfig)
Creates the extended entity configuration under the realm.
|
void |
createEntityDescriptor(String realm,
com.sun.identity.liberty.ws.meta.jaxb.EntityDescriptorElement entityDescriptor)
Creates the standard metadata entity descriptor.
|
void |
deleteEntityConfig(String realm,
String entityId)
Deletes the extended entity configuration.
|
void |
deleteEntityDescriptor(String realm,
String entityID)
Deletes the standard metadata entity descriptor under the realm.
|
Set |
getAffiliateEntity(String realm,
String providerID)
Returns a set of Affiliation Entity Descriptors of which the
provider identifier is a member of.
|
com.sun.identity.liberty.ws.meta.jaxb.AffiliationDescriptorType |
getAffiliationDescriptor(String realm,
String entityID)
Returns the Affiliation Descriptor for the entity identifier.
|
com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement |
getAffiliationDescriptorConfig(String realm,
String entityID)
Returns Affiliation Configuration for the entity identifier.
|
Set |
getAllEntities(String realm)
Returns all entities under the realm.
|
List |
getAllHostedEntities(String realm)
Returns all remote entities under the realm.
|
List |
getAllHostedIdentityProviderIDs(String realm)
Returns all hosted Identity Provider Entity Identifiers under the
realm.
|
List |
getAllHostedServiceProviderEntities(String realm)
Returns all hosted Service Provider Entity Identifiers under the
realm.
|
List |
getAllRemoteEntities(String realm)
Returns all remote entities under the realm.
|
List |
getAllRemoteIdentityProviderIDs(String realm)
Returns all remote Identity Provider Identifiers under the realm.
|
List |
getAllRemoteServiceProviderEntities(String realm)
Returns all remote Service Provider Entity Identifiers under the
realm.
|
Set |
getAllTrustedProviders(String hostedProviderMetaAlias)
Returns a set of remote providers trusted by the hosted providers.
|
com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement |
getEntityConfig(String realm,
String entityID)
Returns extended entity configuration under the realm.
|
com.sun.identity.liberty.ws.meta.jaxb.EntityDescriptorElement |
getEntityDescriptor(String realm,
String entityID)
Returns the standard metadata entity descriptor under the realm.
|
String |
getEntityIDByMetaAlias(String metaAlias)
Returns entity ID associated with the metaAlias.
|
String |
getEntityIDBySuccinctID(String realm,
String succinctId)
Returns entity ID associated with the succinct ID.
|
com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType |
getIDPDescriptor(String realm,
String entityID)
Returns Identity Provider's Descriptor for the
entity identifier.
|
com.sun.identity.federation.jaxb.entityconfig.IDPDescriptorConfigElement |
getIDPDescriptorConfig(String realm,
String entityID)
Returns Identity Provider's Configuration for the entity identifier.
|
String |
getProviderRoleByMetaAlias(String metaAlias)
Returns entity role associated with the metaAlias.
|
com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType |
getSPDescriptor(String realm,
String entityID)
Returns the Service Provider's Descriptor for the
entity identifier.
|
com.sun.identity.federation.jaxb.entityconfig.SPDescriptorConfigElement |
getSPDescriptorConfig(String realm,
String entityID)
Returns Service Provider's Configuration for the entity identifier.
|
boolean |
isAffiliateMember(String realm,
String providerID,
String affiliationID)
Checks if the provider is a member of the Affiliation.
|
boolean |
isTrustedProvider(String realm,
String hostedEntityID,
String entityID)
Checks whether two entities are in the same circle of trust.
|
void |
setEntityConfig(String realm,
com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement entityConfig)
Sets the extended entity configuration under the realm.
|
void |
setEntityDescriptor(String realm,
com.sun.identity.liberty.ws.meta.jaxb.EntityDescriptorElement entityDescriptor)
Sets the standard metadata entity descriptor under the realm.
|
public static final String NAME_META_ALIAS_IN_URI
public IDFFMetaManager(Object session) throws IDFFMetaException
session
- handle to the session object.IDFFMetaException
- if there is an error creating this object.public void createEntityDescriptor(String realm, com.sun.identity.liberty.ws.meta.jaxb.EntityDescriptorElement entityDescriptor) throws IDFFMetaException
realm
- The realm under which the entity resides.entityDescriptor
- The standard entity descriptor object to
be created.IDFFMetaException
- if unable to create the entity descriptor.public com.sun.identity.liberty.ws.meta.jaxb.EntityDescriptorElement getEntityDescriptor(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- identifier of the entity to be retrieved.EntityDescriptorElement
for the entity or null if
not found.IDFFMetaException
- if unable to retrieve the entity descriptor.public void setEntityDescriptor(String realm, com.sun.identity.liberty.ws.meta.jaxb.EntityDescriptorElement entityDescriptor) throws IDFFMetaException
realm
- The realm under which the entity resides.entityDescriptor
- The standard entity descriptor object to be set.IDFFMetaException
- if there is an error setting the entity
descriptor.createEntityDescriptor(String, EntityDescriptorElement)
public void deleteEntityDescriptor(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- identifier of the entity to be deleted.IDFFMetaException
- if there is an error deleting the entity
descriptor.public void deleteEntityConfig(String realm, String entityId) throws IDFFMetaException
realm
- The realm under which the entity resides.entityId
- The ID of the entity for whom the extended entity
configuration will be deleted.IDFFMetaException
- if unable to delete the entity descriptor.public com.sun.identity.liberty.ws.meta.jaxb.SPDescriptorType getSPDescriptor(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- Entity Identifier to retrieve Service Provider from.SPDescriptorType
for the provider. A null is
returned if no Service Provider is found.IDFFMetaException
- if there is an error retreiving the provider.public com.sun.identity.liberty.ws.meta.jaxb.IDPDescriptorType getIDPDescriptor(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- Entity Identifier to retrieve Identity Provider from.IDPDescriptorType
for the entity. A null is
returned if no Identity Provider is found.IDFFMetaException
- if there is an error retreiving the provider.public com.sun.identity.liberty.ws.meta.jaxb.AffiliationDescriptorType getAffiliationDescriptor(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- Entity Identifier to retrieve Affiliation Descriptor
from.AffiliationDescriptorType
the Affliation
descriptor.IDFFMetaException
- if there is an error retreiving the
affiliation.public void createEntityConfig(String realm, com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement entityConfig) throws IDFFMetaException
realm
- The realm under which the entity configuration will be
created.entityConfig
- extended entity configuration to be created.IDFFMetaException
- if unable to create the entity configuration.public com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement getEntityConfig(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- identifier of the entity whose config is to be
retrieved.EntityConfigElement
object of the entity or null
if the entity configuration does not exist.IDFFMetaException
- if unable to retrieve the entity
configuration.public void setEntityConfig(String realm, com.sun.identity.federation.jaxb.entityconfig.EntityConfigElement entityConfig) throws IDFFMetaException
realm
- The realm under which the entity resides inentityConfig
- The extended entity configuration object to be set.IDFFMetaException
- if unable to set the entity configuration.public com.sun.identity.federation.jaxb.entityconfig.SPDescriptorConfigElement getSPDescriptorConfig(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- ID of the entity to be retrieved.SPDescriptorConfigElement
for the entity
identifier . A null is returned if the configuration
is not found.IDFFMetaException
- if there is an error retrieving service
provider configuration.public com.sun.identity.federation.jaxb.entityconfig.IDPDescriptorConfigElement getIDPDescriptorConfig(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- ID of the entity to be retrieved.IDPDescriptorConfigElement
for the entity
identifier . A null is returned if the configuration
is not found.IDFFMetaException
- if there is an error retrieving service
provider configuration.public com.sun.identity.federation.jaxb.entityconfig.AffiliationDescriptorConfigElement getAffiliationDescriptorConfig(String realm, String entityID) throws IDFFMetaException
realm
- The realm under which the entity resides.entityID
- ID of the entity to be retrieved.AffiliationDescriptorConfigElement
for the entity
identifier . A null is returned if the configuration
is not found.IDFFMetaException
- if there is an error retrieving service
provider configuration.public Set getAllEntities(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.Set
of entity ID String
.IDFFMetaException
- if unable to retrieve the entity ids.public List getAllHostedEntities(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.List
of entity identifiers as Strings.IDFFMetaException
- if unable to retrieve the remote entity
identifiers.public List getAllRemoteEntities(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.List
of entity identifiers as Strings.IDFFMetaException
- if unable to retrieve the remote entity
identifiers.public List getAllHostedServiceProviderEntities(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.List
of entity identifiers as Strings.IDFFMetaException
- if unable to retrieve the entity ids.public List getAllRemoteServiceProviderEntities(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.List
of entity identifiers as Strings.IDFFMetaException
- if unable to retrieve the entity ids.public List getAllHostedIdentityProviderIDs(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.List
of identity provider entity identifiers.
The values in the list are Strings.IDFFMetaException
- if unable to retrieve the entity ids.public List getAllRemoteIdentityProviderIDs(String realm) throws IDFFMetaException
realm
- The realm under which the hosted entities reside.List
of remote identity provider identifiers.
The values in the list are Strings.IDFFMetaException
- if unable to retrieve the provider identifiers.public boolean isTrustedProvider(String realm, String hostedEntityID, String entityID)
realm
- The realm under which the entity resides.hostedEntityID
- the hosted entity identifier.entityID
- the identifier of the entity to be checked for trust.public Set getAllTrustedProviders(String hostedProviderMetaAlias)
hostedProviderMetaAlias
- the metaAlias of the hosted provider.public boolean isAffiliateMember(String realm, String providerID, String affiliationID) throws IDFFMetaException
realm
- The realm under which the entity resides.providerID
- the provider's identitifer.affiliationID
- the Affiliation identifier.IDFFMetaException
- if there is an error retreiving the affiliate
information.public Set getAffiliateEntity(String realm, String providerID)
realm
- The realm under which the entity resides.providerID
- the provider identifier.public String getEntityIDByMetaAlias(String metaAlias) throws IDFFMetaException
metaAlias
- The Meta Alias of the provider.IDFFMetaException
- if unable to retrieve the entity id.public String getProviderRoleByMetaAlias(String metaAlias) throws IDFFMetaException
metaAlias
- The Meta Alias of the provider.IDFFMetaException
- if unable to retrieve the entity role.public String getEntityIDBySuccinctID(String realm, String succinctId) throws IDFFMetaException
realm
- The realm under which the entity resides.succinctId
- Succinct ID of a IDP contained in the entity
to be retrieved.IDFFMetaException
- if unable to retrieve the entity ID.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.