public class SpnegoTokenContext extends Object
Constructor and Description |
---|
SpnegoTokenContext() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
GSSCredential |
getDelegationCredential() |
Principal |
getSpnegoPrincipal() |
byte[] |
getToken()
Get the SPNEGO token that was created.
|
boolean |
isEstablished()
Whether a connection has been established (at the service side)
|
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName)
Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this
BinarySecurityToken.
|
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm)
Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this
BinarySecurityToken.
|
void |
retrieveServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm,
boolean requestCredDeleg,
GSSCredential delegationCredential)
Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this
BinarySecurityToken.
|
void |
setMutualAuth(boolean mutualAuthentication)
Whether to enable mutual authentication or not.
|
void |
setSpnegoClientAction(SpnegoClientAction spnegoClientAction)
Set a custom SpnegoClientAction implementation to use
|
void |
setSpnegoServiceAction(SpnegoServiceAction spnegoServiceAction)
Set a custom SpnegoServiceAction implementation to use
|
byte[] |
unwrapKey(byte[] secret)
Unwrap a key
|
void |
validateServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
boolean isUsernameServiceNameForm,
byte[] ticket)
Validate a service ticket.
|
void |
validateServiceTicket(String jaasLoginModuleName,
CallbackHandler callbackHandler,
String serviceName,
byte[] ticket)
Validate a service ticket.
|
byte[] |
wrapKey(byte[] secret)
Wrap a key
|
public void retrieveServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName) throws WSSecurityException
jaasLoginModuleName
- the JAAS Login Module name to usecallbackHandler
- a CallbackHandler instance to retrieve a password (optional)serviceName
- the desired Kerberized serviceWSSecurityException
public void retrieveServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm) throws WSSecurityException
jaasLoginModuleName
- the JAAS Login Module name to usecallbackHandler
- a CallbackHandler instance to retrieve a password (optional)serviceName
- the desired Kerberized serviceisUsernameServiceNameForm
- WSSecurityException
public void retrieveServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm, boolean requestCredDeleg, GSSCredential delegationCredential) throws WSSecurityException
jaasLoginModuleName
- the JAAS Login Module name to usecallbackHandler
- a CallbackHandler instance to retrieve a password (optional)serviceName
- the desired Kerberized serviceisUsernameServiceNameForm
- requestCredDeleg
- Whether to request credential delegation or notdelegationCredential
- The delegation credential to useWSSecurityException
public void validateServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, byte[] ticket) throws WSSecurityException
jaasLoginModuleName
- callbackHandler
- serviceName
- ticket
- WSSecurityException
public void validateServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm, byte[] ticket) throws WSSecurityException
jaasLoginModuleName
- callbackHandler
- serviceName
- ticket
- WSSecurityException
public void setMutualAuth(boolean mutualAuthentication)
public byte[] getToken()
public boolean isEstablished()
public byte[] unwrapKey(byte[] secret) throws WSSecurityException
WSSecurityException
public byte[] wrapKey(byte[] secret) throws WSSecurityException
WSSecurityException
public void setSpnegoClientAction(SpnegoClientAction spnegoClientAction)
public void setSpnegoServiceAction(SpnegoServiceAction spnegoServiceAction)
public void clear()
public GSSCredential getDelegationCredential()
public Principal getSpnegoPrincipal()
Copyright © 2016 JBoss by Red Hat. All rights reserved.