public interface SecurityHelper
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()
Get the current security context associated with the thread
|
Subject |
getSubjectInContext(Object context)
Get the subject associated with the security context.
|
Subject |
getSubjectInContext(String securityDomain)
Get the subject associated with the security context.
|
GSSResult |
negotiateGssLogin(String securityDomain,
byte[] serviceTicket)
Negotiate the GSS login
|
Object associateSecurityContext(Object context)
context
- void clearSecurityContext()
Object getSecurityContext()
Subject getSubjectInContext(String securityDomain)
securityDomain
- Subject getSubjectInContext(Object context)
context
- Object authenticate(String securityDomain, String baseUserName, Credentials credentials, String applicationName) throws LoginException
securityDomain
- baseUserName
- without the security domain suffixcredentials
- applicationName
- LoginException
GSSResult negotiateGssLogin(String securityDomain, byte[] serviceTicket) throws LoginException
securityDomain
- serviceTicket
- LoginException
Copyright © 2019. All rights reserved.