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

All Superinterfaces:
Serializable

public interface Callback
extends Serializable

This SPI interface represents the security inflow contract in the container environment

Author:
Jesper Pedersen

Method Summary
 String[] getDefaultGroups()
          Get the default groups
 Principal getDefaultPrincipal()
          Get the default principal
 String getDomain()
          Get the domain
 boolean isMappingRequired()
          Is an user mapping required
 String mapGroup(String name)
          Map a group
 Principal mapPrincipal(String name)
          Map a principal
 void start()
          Start
 void stop()
          Stop
 

Method Detail

getDomain

String getDomain()
Get the domain

Returns:
The domain

isMappingRequired

boolean isMappingRequired()
Is an user mapping required

Returns:
The value

getDefaultPrincipal

Principal getDefaultPrincipal()
Get the default principal

Returns:
The value; null if no default principal

getDefaultGroups

String[] getDefaultGroups()
Get the default groups

Returns:
The value; null if no default groups

mapPrincipal

Principal mapPrincipal(String name)
Map a principal

Parameters:
name - The principal name
Returns:
The value; null if no mapping could be found

mapGroup

String mapGroup(String name)
Map a group

Parameters:
name - The group name
Returns:
The value; null if no mapping could be found

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 © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)