public class LoginSession
extends java.lang.Object
| Constructor and Description |
|---|
LoginSession(BundleContext context,
java.lang.String username,
java.lang.String password,
LoginContext loginContext,
java.util.Collection<LoginHandler> handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
LoginContext |
getLoginContext() |
java.lang.String |
getPassword() |
java.lang.String |
getUsername() |
boolean |
hasRole(java.lang.String role)
Checks with all login handler if the session has a role granted
|
void |
register() |
public LoginSession(BundleContext context,
java.lang.String username,
java.lang.String password,
LoginContext loginContext,
java.util.Collection<LoginHandler> handler)
public java.lang.String getPassword()
public java.lang.String getUsername()
public LoginContext getLoginContext()
public void register()
public void dispose()
public boolean hasRole(java.lang.String role)
If no handler grants the role, the default false is returned.
role - the role to checktrue if the role was granted, false otherwise
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0