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(String securityDomain)
Get the current security context associated with the thread
|
Subject |
getSubjectInContext(Object context)
Get the subject associated with the security context.
|
GSSResult |
negotiateGssLogin(String securityDomain,
byte[] serviceTicket)
Negotiate the GSS login
|
public Object getSecurityContext(String securityDomain)
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 © 2019. All rights reserved.