org.globus.gridshib.common.mapper
Class EntityMapDir
java.lang.Object
org.globus.gridshib.common.LoadableResource
org.globus.gridshib.common.StringMapDir
org.globus.gridshib.common.mapper.EntityMapDir
- All Implemented Interfaces:
- Loadable, EntityMap
public class EntityMapDir
- extends StringMapDir
- implements EntityMap
An implementation of the EntityMap interface
backed by a Loadable map of String
into String. Since this implementation
extends StringMapDir, the underlying
File object is a directory in the filesystem.
- See Also:
EntityMap,
StringMapDir
|
Method Summary |
String |
getDN(String entityID)
Gets an X.500 distinguished name (DN) for a
particular SAML entity. |
X509Certificate |
getX509Certificate(String entityID)
This flat file-based implementation of the
EntityMap interface does not
encode certificates, so this method always
returns null. |
boolean |
hasMetadata(String entityID)
Determines whether the SAML entity represented
by the given entityID has metadata,
that is, if the relying party has consumed
metadata for that entity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityMapDir
public EntityMapDir(URI uri)
throws LoadException
- Throws:
LoadException- See Also:
StringMapDir
EntityMapDir
public EntityMapDir(String pathname)
throws LoadException
- Throws:
LoadException- See Also:
StringMapDir
EntityMapDir
public EntityMapDir(File file)
throws LoadException
- Throws:
LoadException- See Also:
StringMapDir
hasMetadata
public boolean hasMetadata(String entityID)
- Description copied from interface:
EntityMap
- Determines whether the SAML entity represented
by the given
entityID has metadata,
that is, if the relying party has consumed
metadata for that entity.
- Specified by:
hasMetadata in interface EntityMap
- Parameters:
entityID - the unique identifier of the entity
- Returns:
- true if and only if the given entity has
metadata
- See Also:
EntityMap
getDN
public String getDN(String entityID)
- Description copied from interface:
EntityMap
- Gets an X.500 distinguished name (DN) for a
particular SAML entity. Depending on the
implementation, a DN may exist for a particular
entity despite the fact that a certificate does
not. This would true, for example, if the
implementation were based on a flat file
containing ordered pairs of the form (entityID, DN).
- Specified by:
getDN in interface EntityMap
- Parameters:
entityID - the unique identifier of the entity
- Returns:
- the corresponding distinguished name (DN)
in RFC2253 format, or null if no mapping
from entityID to DN exists
- See Also:
EntityMap
getX509Certificate
public X509Certificate getX509Certificate(String entityID)
- This flat file-based implementation of the
EntityMap interface does not
encode certificates, so this method always
returns null.
- Specified by:
getX509Certificate in interface EntityMap
- Parameters:
entityID - the unique identifier of the entity
- Returns:
- the corresponding trusted certificate,
or null if no mapping from entityID to
certificate exists
- See Also:
EntityMap
Copyright © 2007-2008 University of Illinois. All Rights Reserved.