public class JBossClientAuthConfig extends Object implements ClientAuthConfig
Constructor and Description |
---|
JBossClientAuthConfig(String layer,
String appContext,
CallbackHandler handler,
Map properties)
Create a new JBossClientAuthConfig.
|
Modifier and Type | Method and Description |
---|---|
String |
getAppContext()
Get the application context identifier of this authentication context
configuration object.
|
ClientAuthContext |
getAuthContext(String authContextID,
Subject clientSubject,
Map properties)
Get a ClientAuthContext instance from this ClientAuthConfig.
|
String |
getAuthContextID(MessageInfo messageInfo) |
List |
getClientAuthModules() |
String |
getMessageLayer()
Get the message layer name of this authentication context configuration object.
|
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 JBossClientAuthConfig(String layer, String appContext, CallbackHandler handler, Map properties)
layer
- Message LayerappContext
- Application Contexthandler
- Callback Handler to be passed to auth modulesproperties
- Contextual propertiespublic ClientAuthContext getAuthContext(String authContextID, Subject clientSubject, Map properties) throws AuthException
ClientAuthConfig
Get a ClientAuthContext instance from this ClientAuthConfig.
The implementation of this method returns a ClientAuthContext instance that encapsulates the ClientAuthModules used to secure and validate requests/responses associated with the given operation.
Specifically, this method accesses this ClientAuthConfig object with the argument operation to determine the ClientAuthModules that are to be encapsulated in the returned ClientAuthContext instance.
The ClientAuthConfig object establishes the request and response MessagePolicy objects that are passed to the encapsulated modules when they are initialized by the returned ClientAuthContext instance. It is the module's responsibility to enforce these policies when invoked.
getAuthContext
in interface ClientAuthConfig
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.ClientAuthConfig.getAuthContext(String, javax.security.auth.Subject, java.util.Map)
public String getMessageLayer()
AuthConfig
getMessageLayer
in interface AuthConfig
AuthConfig.getMessageLayer()
public void refresh()
AuthConfig
refresh
in interface AuthConfig
AuthConfig.refresh()
public List getClientAuthModules()
public String getAppContext()
AuthConfig
getAppContext
in interface AuthConfig
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.