Package org.teiid.runtime
Class DoNothingSecurityHelper
- java.lang.Object
-
- org.teiid.runtime.DoNothingSecurityHelper
-
- All Implemented Interfaces:
SecurityHelper
public class DoNothingSecurityHelper extends Object implements SecurityHelper
ASecurityHelper
that does nothing and always assumes that thread has the proper security context.
-
-
Constructor Summary
Constructors Constructor Description DoNothingSecurityHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
associateSecurityContext(Object context)
Associate the given context and return the old contextObject
authenticate(String securityDomain, String baseUserName, Credentials credentials, String applicationName)
Authenticate the user and return the security contextvoid
clearSecurityContext()
Clear any security context associated with the threadObject
getSecurityContext(String securityDomain)
Get the current security context associated with the threadSubject
getSubjectInContext(Object context)
Get the subject associated with the security context.GSSResult
negotiateGssLogin(String securityDomain, byte[] serviceTicket)
Negotiate the GSS login
-
-
-
Method Detail
-
getSecurityContext
public Object getSecurityContext(String securityDomain)
Description copied from interface:SecurityHelper
Get the current security context associated with the thread- Specified by:
getSecurityContext
in interfaceSecurityHelper
- Returns:
-
clearSecurityContext
public void clearSecurityContext()
Description copied from interface:SecurityHelper
Clear any security context associated with the thread- Specified by:
clearSecurityContext
in interfaceSecurityHelper
-
associateSecurityContext
public Object associateSecurityContext(Object context)
Description copied from interface:SecurityHelper
Associate the given context and return the old context- Specified by:
associateSecurityContext
in interfaceSecurityHelper
- Returns:
-
authenticate
public Object authenticate(String securityDomain, String baseUserName, Credentials credentials, String applicationName) throws LoginException
Description copied from interface:SecurityHelper
Authenticate the user and return the security context- Specified by:
authenticate
in interfaceSecurityHelper
baseUserName
- without the security domain suffix- Returns:
- a non-null context object
- Throws:
LoginException
-
negotiateGssLogin
public GSSResult negotiateGssLogin(String securityDomain, byte[] serviceTicket) throws LoginException
Description copied from interface:SecurityHelper
Negotiate the GSS login- Specified by:
negotiateGssLogin
in interfaceSecurityHelper
- Returns:
- Throws:
LoginException
-
getSubjectInContext
public Subject getSubjectInContext(Object context)
Description copied from interface:SecurityHelper
Get the subject associated with the security context.- Specified by:
getSubjectInContext
in interfaceSecurityHelper
- Returns:
-
-