
public class DefaultCallback extends Object implements org.jboss.jca.core.spi.security.Callback
| Constructor and Description |
|---|
DefaultCallback()
Constructor
|
DefaultCallback(String file)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupMapping(String from,
String to)
Add a group mapping
|
void |
addPrincipalMapping(String from,
String to)
Add a principal mapping
|
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 |
setDefaultGroups(String[] value)
Set the default groups
|
void |
setDefaultPrincipal(Principal value)
Set the default principal
|
void |
setDomain(String v)
Set the domain
|
void |
setFile(String value)
Set the file name
|
void |
setMappingRequired(boolean value)
Set the user mapping required
|
void |
start()
Start
|
void |
stop()
Stop
|
String |
toString() |
public DefaultCallback()
public DefaultCallback(String file)
file - The filepublic String getDomain()
getDomain in interface org.jboss.jca.core.spi.security.Callbackpublic void setDomain(String v)
v - The valuepublic boolean isMappingRequired()
isMappingRequired in interface org.jboss.jca.core.spi.security.Callbackpublic void setMappingRequired(boolean value)
value - The valuepublic Principal getDefaultPrincipal()
getDefaultPrincipal in interface org.jboss.jca.core.spi.security.Callbacknull if no default principalpublic void setDefaultPrincipal(Principal value)
value - The valuepublic String[] getDefaultGroups()
getDefaultGroups in interface org.jboss.jca.core.spi.security.Callbacknull if no default groupspublic void setDefaultGroups(String[] value)
value - The valuepublic Principal mapPrincipal(String name)
mapPrincipal in interface org.jboss.jca.core.spi.security.Callbackname - The principal namenull if no mapping could be foundpublic void addPrincipalMapping(String from, String to)
from - The from nameto - The to namepublic String mapGroup(String name)
mapGroup in interface org.jboss.jca.core.spi.security.Callbackname - The group namenull if no mapping could be foundpublic void addGroupMapping(String from, String to)
from - The from nameto - The to namepublic void setFile(String value)
value - The valuepublic void start()
throws Throwable
start in interface org.jboss.jca.core.spi.security.CallbackThrowable - Thrown if an error occurspublic void stop()
throws Throwable
stop in interface org.jboss.jca.core.spi.security.CallbackThrowable - Thrown if an error occursCopyright © 2013 IronJacamar (http://www.ironjacamar.org)