Brooklyn

brooklyn.rest.security.provider
[Java] Class LdapSecurityProvider

java.lang.Object
  brooklyn.rest.security.provider.LdapSecurityProvider
All Implemented Interfaces:
SecurityProvider

public class LdapSecurityProvider

A SecurityProvider implementation that relies on LDAP to authenticate.

Authors:
Peter Veentjer.


Field Summary
static java.lang.String AUTHENTICATED_SESSION_TOKEN_NAME

static java.lang.String LDAP_CONTEXT_FACTORY

static Logger LOG

 
Constructor Summary
LdapSecurityProvider(ManagementContext mgmt)

LdapSecurityProvider(java.lang.String ldapUrl, java.lang.String ldapRealm)

 
Method Summary
boolean authenticate(javax.servlet.http.HttpSession session, java.lang.String user, java.lang.String password)

static void checkCanLoad()

boolean isAuthenticated(javax.servlet.http.HttpSession session)

boolean logout(javax.servlet.http.HttpSession session)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

AUTHENTICATED_SESSION_TOKEN_NAME

public static final java.lang.String AUTHENTICATED_SESSION_TOKEN_NAME


LDAP_CONTEXT_FACTORY

public static final java.lang.String LDAP_CONTEXT_FACTORY


LOG

public static final Logger LOG


 
Constructor Detail

LdapSecurityProvider

public LdapSecurityProvider(ManagementContext mgmt)


LdapSecurityProvider

public LdapSecurityProvider(java.lang.String ldapUrl, java.lang.String ldapRealm)


 
Method Detail

authenticate

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public boolean authenticate(javax.servlet.http.HttpSession session, java.lang.String user, java.lang.String password)


checkCanLoad

public static void checkCanLoad()


isAuthenticated

@Override
public boolean isAuthenticated(javax.servlet.http.HttpSession session)


logout

@Override
public boolean logout(javax.servlet.http.HttpSession session)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.