|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.security.ldap.LDAPSecurityResolver
public class LDAPSecurityResolver
A LDAP SecurityResolver.
Field Summary | |
---|---|
static java.lang.String |
BUNDLE_NAME
name of bundle. |
static java.lang.String |
CONFIGURATION_FILE
name of configuration file. |
static java.lang.String |
DEFAULT_LDAP_USER_NAME_ATTRIBUTE
The default value for the user name attribute. |
static java.lang.String |
LDAP_ATTRIBUTE_MEMBER
Constant for the LDAP attribute member. |
static java.lang.String |
LDAP_ATTRIBUTE_MEMBER_OF
Constant for the LDAP attribute memberOf. |
static java.lang.String |
LDAP_ATTRIBUTE_OBJECT_CLASS
Constant for the LDAP attribute objectClass. |
static java.lang.String |
LDAP_ATTRIBUTE_UNIQUE_MEMBER
Constant for the LDAP attribute uniqueMember. |
static java.lang.String |
LDAP_OBJECT_NAME_DYNAMIC_GROUP
Constant for the LDAP object name dynamicGroup. |
static java.lang.String |
LDAP_OBJECT_NAME_DYNAMIC_GROUP_AUX
Constant for the LDAP object name dynamicGroupAux. |
static java.lang.String |
LDAP_OBJECT_NAME_GROUP
Constant for the LDAP object name group. |
static java.lang.String |
LDAP_OBJECT_NAME_GROUP_OF_NAMES
Constant for the LDAP object name groupOfNames. |
static java.lang.String |
LDAP_OBJECT_NAME_GROUP_OF_UNIQUE_NAMES
Constant for the LDAP object name groupOfUniqueNames. |
static java.lang.String |
PROPERTY_LDAP_BASE_DN
The configuration property ldap.base.dn. |
static java.lang.String |
PROPERTY_LDAP_HOST
The configuration property ldap.host. |
static java.lang.String |
PROPERTY_LDAP_LOGIN
The configuration property ldap.login. |
static java.lang.String |
PROPERTY_LDAP_PASSWORD
The configuration property ldap.password. |
static java.lang.String |
PROPERTY_LDAP_PORT
The configuration property ldap.port. |
static java.lang.String |
PROPERTY_LDAP_USER_NAME_ATTRIBUTE
The configuration property ldap.base.dn. |
Constructor Summary | |
---|---|
LDAPSecurityResolver()
Default Constructor. |
Method Summary | |
---|---|
protected void |
activate(ComponentContext context)
DS activate method. |
protected void |
deactivate(ComponentContext context)
DS deactivate method. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUNDLE_NAME
public static final java.lang.String CONFIGURATION_FILE
public static final java.lang.String PROPERTY_LDAP_HOST
public static final java.lang.String PROPERTY_LDAP_PORT
public static final java.lang.String PROPERTY_LDAP_LOGIN
public static final java.lang.String PROPERTY_LDAP_PASSWORD
public static final java.lang.String PROPERTY_LDAP_BASE_DN
public static final java.lang.String PROPERTY_LDAP_USER_NAME_ATTRIBUTE
public static final java.lang.String DEFAULT_LDAP_USER_NAME_ATTRIBUTE
public static final java.lang.String LDAP_ATTRIBUTE_OBJECT_CLASS
public static final java.lang.String LDAP_ATTRIBUTE_MEMBER
public static final java.lang.String LDAP_ATTRIBUTE_UNIQUE_MEMBER
public static final java.lang.String LDAP_ATTRIBUTE_MEMBER_OF
public static final java.lang.String LDAP_OBJECT_NAME_GROUP
public static final java.lang.String LDAP_OBJECT_NAME_GROUP_OF_NAMES
public static final java.lang.String LDAP_OBJECT_NAME_GROUP_OF_UNIQUE_NAMES
public static final java.lang.String LDAP_OBJECT_NAME_DYNAMIC_GROUP
public static final java.lang.String LDAP_OBJECT_NAME_DYNAMIC_GROUP_AUX
Constructor Detail |
---|
public LDAPSecurityResolver()
Method Detail |
---|
protected void activate(ComponentContext context) throws java.lang.Exception
context
- ComponentContext
java.lang.Exception
- if any error occursprotected void deactivate(ComponentContext context) throws java.lang.Exception
context
- the ComponentContext
java.lang.Exception
- if any error occurspublic java.lang.String resolvePrincipal(java.lang.String name) throws SecurityException
resolvePrincipal
in interface SecurityResolver
name
- the name of the principal
SecurityException
- if any error occursSecurityResolver.resolvePrincipal(java.lang.String)
public java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getProperties(java.lang.String principal) throws SecurityException
getProperties
in interface SecurityResolver
principal
- the principal
SecurityException
- if any error occursSecurityResolver.getProperties(java.lang.String)
public java.util.Set<java.lang.String> resolveGroupMembers(java.lang.String group) throws SecurityException
resolveGroupMembers
in interface SecurityResolver
group
- the group principal
SecurityException
- if any error occursSecurityResolver.resolveGroupMembers(java.lang.String)
public java.util.Set<java.lang.String> resolveMembership(java.lang.String principal) throws SecurityException
resolveMembership
in interface SecurityResolver
principal
- the principal
SecurityException
- if any error occursSecurityResolver.resolveMembership(java.lang.String)
public boolean isGroup(java.lang.String principal) throws SecurityException
isGroup
in interface SecurityResolver
principal
- the principal
SecurityException
- if any error occursSecurityResolver.isGroup(java.lang.String)
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |