org.jboss.jca.core.spi.security
Interface Callback

All Superinterfaces:
Serializable

public interface Callback
extends Serializable

This SPI interface represents the users, their passwords and roles in the container environment

Author:
Jesper Pedersen

Method Summary
 char[] getCredential(String user)
          Get the credential for an user
 String getDomain()
          Get the domain
 String[] getRoles(String user)
          Get the roles for an user
 Set<String> getUsers()
          Get the users
 void start()
          Start
 void stop()
          Stop
 

Method Detail

getDomain

String getDomain()
Get the domain

Returns:
The domain

getUsers

Set<String> getUsers()
Get the users

Returns:
A set of user names

getCredential

char[] getCredential(String user)
Get the credential for an user

Parameters:
user - The user name
Returns:
The credential; null if user doesn't exists

getRoles

String[] getRoles(String user)
Get the roles for an user

Parameters:
user - The user name
Returns:
A set of roles; null if user doesn't exists or no roles

start

void start()
           throws Throwable
Start

Throws:
Throwable - Thrown if an error occurs

stop

void stop()
          throws Throwable
Stop

Throws:
Throwable - Thrown if an error occurs


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)