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

All Superinterfaces:
Serializable

public interface Callback
extends Serializable

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

Version:
$Rev: 97162 $
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
 

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


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