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)
SecurityHelper
getSecurityContext
in interface SecurityHelper
public void clearSecurityContext()
SecurityHelper
clearSecurityContext
in interface SecurityHelper
public Object associateSecurityContext(Object context)
SecurityHelper
associateSecurityContext
in interface SecurityHelper
public Object authenticate(String securityDomain, String baseUserName, Credentials credentials, String applicationName) throws LoginException
SecurityHelper
authenticate
in interface SecurityHelper
baseUserName
- without the security domain suffixLoginException
public GSSResult negotiateGssLogin(String securityDomain, byte[] serviceTicket) throws LoginException
SecurityHelper
negotiateGssLogin
in interface SecurityHelper
LoginException
public Subject getSubjectInContext(Object context)
SecurityHelper
getSubjectInContext
in interface SecurityHelper
Copyright © 2020. All rights reserved.