Package org.apache.wss4j.common.spnego
Interface SpnegoServiceAction
- All Superinterfaces:
PrivilegedAction<byte[]>
- All Known Implementing Classes:
DefaultSpnegoServiceAction
This interface represents a PrivilegedAction implementation to validate a received (SPNEGO)
ticket to a KDC.
-
Method Summary
Modifier and TypeMethodDescriptionGet the GSSContext that was created after a service ticket was obtainedbyte[]run()Validate a service ticketvoidsetServiceName(String serviceName) The Service NamevoidsetTicket(byte[] ticket) Set the ticket to validatevoidsetUsernameServiceNameForm(boolean isUsernameServiceNameForm) If true - sets the SPN form to "username"
If false(default) - the SPN form is "hostbased"
-
Method Details
-
setTicket
void setTicket(byte[] ticket) Set the ticket to validate -
setServiceName
The Service Name -
setUsernameServiceNameForm
void setUsernameServiceNameForm(boolean isUsernameServiceNameForm) If true - sets the SPN form to "username"
If false(default) - the SPN form is "hostbased"- Parameters:
isUsernameServiceNameForm- the isUsernameServiceNameForm to set
-
run
byte[] run()Validate a service ticket- Specified by:
runin interfacePrivilegedAction<byte[]>
-
getContext
GSSContext getContext()Get the GSSContext that was created after a service ticket was obtained
-