Package org.apache.wss4j.common.spnego
Interface SpnegoClientAction
- All Superinterfaces:
PrivilegedAction<byte[]>
- All Known Implementing Classes:
DefaultSpnegoClientAction
This interface represents a PrivilegedAction implementation to obtain a (SPNEGO) service ticket
from a Kerberos Key Distribution Center.
-
Method Summary
Modifier and TypeMethodDescriptionGet the GSSContext that was created after a service ticket was obtainedbyte[]run()Obtain a service ticketvoidsetMutualAuth(boolean mutualAuthentication) Whether to enable mutual authentication or not.voidsetServiceName(String serviceName) The Service NamevoidsetUserNameServiceForm(boolean isUsernameServiceNameForm) If true - sets the SPN form to "username"
If false(default) - the SPN form is "hostbased"
-
Method Details
-
setMutualAuth
void setMutualAuth(boolean mutualAuthentication) Whether to enable mutual authentication or not. -
setServiceName
The Service Name -
setUserNameServiceForm
void setUserNameServiceForm(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()Obtain a service ticket- Specified by:
runin interfacePrivilegedAction<byte[]>
-
getContext
GSSContext getContext()Get the GSSContext that was created after a service ticket was obtained
-