Package org.teiid.security
Interface SecurityHelper
-
- All Known Implementing Classes:
DoNothingSecurityHelper
,JBossSecurityHelper
public interface SecurityHelper
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
associateSecurityContext
Object associateSecurityContext(Object context)
Associate the given context and return the old context- Parameters:
context
-- Returns:
-
clearSecurityContext
void clearSecurityContext()
Clear any security context associated with the thread
-
getSecurityContext
Object getSecurityContext(String securityDomain)
Get the current security context associated with the thread- Returns:
-
getSubjectInContext
Subject getSubjectInContext(Object context)
Get the subject associated with the security context.- Parameters:
context
-- Returns:
-
authenticate
Object authenticate(String securityDomain, String baseUserName, Credentials credentials, String applicationName) throws LoginException
Authenticate the user and return the security context- Parameters:
securityDomain
-baseUserName
- without the security domain suffixcredentials
-applicationName
-- Returns:
- a non-null context object
- Throws:
LoginException
-
negotiateGssLogin
GSSResult negotiateGssLogin(String securityDomain, byte[] serviceTicket) throws LoginException
Negotiate the GSS login- Parameters:
securityDomain
-serviceTicket
-- Returns:
- Throws:
LoginException
-
-