public class DoNothingSecurityHelper extends Object implements SecurityHelper
SecurityHelper that does nothing and always assumes that thread
has the proper security context.| Constructor and Description |
|---|
DoNothingSecurityHelper() |
| Modifier and Type | Method and Description |
|---|---|
Object |
associateSecurityContext(Object context)
Associate the given context and return the old context
|
Object |
authenticate(String securityDomain,
String baseUserName,
Credentials credentials,
String applicationName)
Authenticate the user and return the security context
|
void |
clearSecurityContext()
Clear any security context associated with the thread
|
Object |
getSecurityContext()
Get the current security context associated with the thread
|
Subject |
getSubjectInContext(Object context)
Get the subject associated with the security context.
|
Subject |
getSubjectInContext(String securityDomain)
Get the subject associated with the security context.
|
GSSResult |
negotiateGssLogin(String securityDomain,
byte[] serviceTicket)
Negotiate the GSS login
|
public Subject getSubjectInContext(String securityDomain)
SecurityHelpergetSubjectInContext in interface SecurityHelperpublic Object getSecurityContext()
SecurityHelpergetSecurityContext in interface SecurityHelperpublic void clearSecurityContext()
SecurityHelperclearSecurityContext in interface SecurityHelperpublic Object associateSecurityContext(Object context)
SecurityHelperassociateSecurityContext in interface SecurityHelperpublic Object authenticate(String securityDomain, String baseUserName, Credentials credentials, String applicationName) throws LoginException
SecurityHelperauthenticate in interface SecurityHelperbaseUserName - without the security domain suffixLoginExceptionpublic GSSResult negotiateGssLogin(String securityDomain, byte[] serviceTicket) throws LoginException
SecurityHelpernegotiateGssLogin in interface SecurityHelperLoginExceptionpublic Subject getSubjectInContext(Object context)
SecurityHelpergetSubjectInContext in interface SecurityHelperCopyright © 2018 JBoss by Red Hat. All rights reserved.