public class JASPIServerAuthenticationManager extends JaasSecurityManagerBase implements ServerAuthenticationManager
log, trace| Constructor and Description |
|---|
JASPIServerAuthenticationManager() |
JASPIServerAuthenticationManager(String securityDomain,
CallbackHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(javax.security.auth.message.MessageInfo requestMessage,
Subject clientSubject,
String layer,
CallbackHandler handler)
Authenticate a Subject given the request response JSR-196(JASPI) messages
|
boolean |
isValid(javax.security.auth.message.MessageInfo messageInfo,
Subject clientSubject,
String layer,
String appContext,
CallbackHandler callbackHandler)
Authenticate a Subject given the request response JSR-196(JASPI) messages
|
void |
secureResponse(javax.security.auth.message.MessageInfo messageInfo,
Subject serviceSubject,
String layer,
String appContext,
CallbackHandler handler)
Secures the response encapsulated in the specified
MessageInfo object. |
doesUserHaveRole, getActiveSubject, getPrincipal, getSecurityDomain, getTargetPrincipal, getUserRoles, isValid, isValid, setAuthorizationManager, setDeepCopySubjectOptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveSubject, getTargetPrincipal, isValid, isValidgetSecurityDomainpublic JASPIServerAuthenticationManager()
public JASPIServerAuthenticationManager(String securityDomain, CallbackHandler handler)
public boolean isValid(javax.security.auth.message.MessageInfo requestMessage, Subject clientSubject, String layer, CallbackHandler handler)
ServerAuthenticationManagerisValid in interface ServerAuthenticationManagerclientSubject - Pre-created or null subjectlayer - Message Layer for the JASPI (Optional): Default: HTTPhandler - CallbackHandlerpublic boolean isValid(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, String layer, String appContext, CallbackHandler callbackHandler)
ServerAuthenticationManagerisValid in interface ServerAuthenticationManagermessageInfo - the object that contains the request and response messages.clientSubject - the client subject.layer - the message layer for JASPI.appContext - the JASPI application context.callbackHandler - the callback handler instance.true if the client subject is valid; false otherwise.public void secureResponse(javax.security.auth.message.MessageInfo messageInfo, Subject serviceSubject, String layer, String appContext, CallbackHandler handler)
ServerAuthenticationManager
Secures the response encapsulated in the specified MessageInfo object.
secureResponse in interface ServerAuthenticationManagermessageInfo - the object that contains the request and response messages.serviceSubject - an optional server Subject instance.layer - the JASPI message layer.appContext - the JASPI application context.handler - the CallbackHandler instance that can be used to obtain further information
(such as keys) to secure the response message.Copyright © 2012 JBoss Inc.. All Rights Reserved.