SMILA 1.0 API documentation

org.eclipse.smila.security
Interface SecurityResolver

All Known Implementing Classes:
LDAPSecurityResolver

public interface SecurityResolver

The interface SecurityResolver.


Method Summary
 java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getProperties(java.lang.String principal)
          Returns all properties of the given principal.
 boolean isGroup(java.lang.String principal)
          Checks if the given principal is a group.
 java.util.Set<java.lang.String> resolveGroupMembers(java.lang.String group)
          Returns all principals that are member to the given group, including any subgroups.
 java.util.Set<java.lang.String> resolveMembership(java.lang.String principal)
          Returns all groups the given principal is member of.
 java.lang.String resolvePrincipal(java.lang.String name)
          Resolves a given name to a full form principal (e.g. a distinguished name).
 

Method Detail

resolvePrincipal

java.lang.String resolvePrincipal(java.lang.String name)
                                  throws SecurityException
Resolves a given name to a full form principal (e.g. a distinguished name).

Parameters:
name - the name of the principal
Returns:
the full form principal
Throws:
SecurityException - if any error occurs

getProperties

java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getProperties(java.lang.String principal)
                                                                                     throws SecurityException
Returns all properties of the given principal. The properties are a map of attribute names (String) and attribute values (Collection of Strings).

Parameters:
principal - the principal
Returns:
all properties if the principal
Throws:
SecurityException - if any error occurs

resolveGroupMembers

java.util.Set<java.lang.String> resolveGroupMembers(java.lang.String group)
                                                    throws SecurityException
Returns all principals that are member to the given group, including any subgroups.

Parameters:
group - the group principal
Returns:
a set of all principals that are members of this group
Throws:
SecurityException - if any error occurs

resolveMembership

java.util.Set<java.lang.String> resolveMembership(java.lang.String principal)
                                                  throws SecurityException
Returns all groups the given principal is member of.

Parameters:
principal - the principal
Returns:
a set of group principals the principal is member of
Throws:
SecurityException - if any error occurs

isGroup

boolean isGroup(java.lang.String principal)
                throws SecurityException
Checks if the given principal is a group.

Parameters:
principal - the principal
Returns:
true if the principal is a group, false otherwise
Throws:
SecurityException - if any error occurs

SMILA 1.0 API documentation