public class JBossServerAuthConfig extends Object implements ServerAuthConfig
Constructor and Description |
---|
JBossServerAuthConfig(String layer,
String appContext,
CallbackHandler handler,
Map properties)
Create a new JBossServerAuthConfig.
|
Modifier and Type | Method and Description |
---|---|
String |
getAppContext()
Get the application context identifier of this authentication context
configuration object.
|
ServerAuthContext |
getAuthContext(String authContextID,
Subject serviceSubject,
Map properties)
Get a ServerAuthContext instance from this ServerAuthConfig.
|
String |
getAuthContextID(MessageInfo messageInfo) |
String |
getMessageLayer()
Get the message layer name of this authentication context configuration object.
|
List |
getServerAuthModules() |
boolean |
isProtected() |
void |
refresh()
Causes a dynamic anthentication context configuration object to update its internal
state and such that any change to its state is recognized by any authentication
context objects that were previously obtained from the config object.
|
public JBossServerAuthConfig(String layer, String appContext, CallbackHandler handler, Map properties)
layer
- Message LayerappContext
- Application Contexthandler
- Callback Handler that will be passed to the modulesproperties
- Context Propertiespublic ServerAuthContext getAuthContext(String authContextID, Subject serviceSubject, Map properties) throws AuthException
ServerAuthConfig
Get a ServerAuthContext instance from this ServerAuthConfig.
The implementation of this method returns a ServerAuthContext instance that encapsulates the ServerAuthModules used to validate requets and secure responses associated with the given operation.
Specifically, this method accesses this ServerAuthConfig object with the argument operation to determine the ServerAuthModules that are to be encapsulated in the returned ServerAuthContext instance.
The ServerAuthConfig object establishes the request and response MessagePolicy objects that are passed to the encapsulated modules when they are initialized by the returned ServerAuthContext instance. It is the module's responsibility to enforce these policies when invoked.
getAuthContext
in interface ServerAuthConfig
properties
- a Map object that may be used by the caller to augment the
properties that will be passed to the encapsulated modules at
module initialization. The null value may be passed for this
parameter.AuthException
- if this operation fails.ServerAuthConfig.getAuthContext(String, javax.security.auth.Subject, java.util.Map)
public String getAppContext()
AuthConfig
getAppContext
in interface AuthConfig
AuthConfig.getAppContext()
public String getMessageLayer()
AuthConfig
getMessageLayer
in interface AuthConfig
AuthConfig.getMessageLayer()
public void refresh()
AuthConfig
refresh
in interface AuthConfig
AuthConfig.refresh()
public List getServerAuthModules()
public String getAuthContextID(MessageInfo messageInfo)
getAuthContextID
in interface AuthConfig
public boolean isProtected()
isProtected
in interface AuthConfig
Copyright © 2018 JBoss by Red Hat. All rights reserved.