Package org.teiid.jboss
Class JBossSecurityHelper
- java.lang.Object
-
- org.teiid.jboss.JBossSecurityHelper
-
- All Implemented Interfaces:
Serializable
,SecurityHelper
public class JBossSecurityHelper extends Object implements SecurityHelper, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JBossSecurityHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.security.SecurityContext
associateSecurityContext(Object newContext)
Associate the given context and return the old contextorg.jboss.security.SecurityContext
authenticate(String domain, String baseUsername, Credentials credentials, String applicationName)
Authenticate the user and return the security contextvoid
clearSecurityContext()
Clear any security context associated with the threadorg.jboss.security.SecurityContext
createSecurityContext(String securityDomain, Principal p, Object credentials, Subject subject)
Object
getSecurityContext(String securityDomain)
Get the current security context associated with the threadprotected org.jboss.as.security.plugins.SecurityDomainContext
getSecurityDomainContext(String securityDomain)
Subject
getSubjectInContext(Object context)
Get the subject associated with the security context.GSSResult
negotiateGssLogin(String securityDomain, byte[] serviceTicket)
Negotiate the GSS login
-
-
-
Field Detail
-
AT
public static final String AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
associateSecurityContext
public org.jboss.security.SecurityContext associateSecurityContext(Object newContext)
Description copied from interface:SecurityHelper
Associate the given context and return the old context- Specified by:
associateSecurityContext
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
-
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:
-
createSecurityContext
public org.jboss.security.SecurityContext createSecurityContext(String securityDomain, Principal p, Object credentials, Subject subject)
-
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:
-
authenticate
public org.jboss.security.SecurityContext authenticate(String domain, 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
-
getSecurityDomainContext
protected org.jboss.as.security.plugins.SecurityDomainContext getSecurityDomainContext(String securityDomain)
-
-