|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.spnego.SpnegoTokenContext
public class SpnegoTokenContext
This class wraps a GSSContext and provides some functionality to obtain and validate spnego tokens.
| Constructor Summary | |
|---|---|
SpnegoTokenContext()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
byte[] |
getToken()
Get the SPNEGO token that was created. |
boolean |
isEstablished()
Whether a connection has been established (at the service side) |
void |
retrieveServiceTicket(java.lang.String jaasLoginModuleName,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.lang.String serviceName)
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(java.lang.String jaasLoginModuleName,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.lang.String serviceName,
byte[] ticket)
Validate a service ticket. |
byte[] |
wrapKey(byte[] secret)
Wrap a key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpnegoTokenContext()
| Method Detail |
|---|
public void retrieveServiceTicket(java.lang.String jaasLoginModuleName,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.lang.String serviceName)
throws WSSecurityException
jaasLoginModuleName - the JAAS Login Module name to usecallbackHandler - a CallbackHandler instance to retrieve a password (optional)serviceName - the desired Kerberized service
WSSecurityException
public void validateServiceTicket(java.lang.String jaasLoginModuleName,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.lang.String serviceName,
byte[] ticket)
throws WSSecurityException
jaasLoginModuleName - callbackHandler - serviceName - ticket -
WSSecurityExceptionpublic 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
WSSecurityExceptionpublic void setSpnegoClientAction(SpnegoClientAction spnegoClientAction)
public void setSpnegoServiceAction(SpnegoServiceAction spnegoServiceAction)
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||