public class DefaultSpnegoClientAction extends Object implements SpnegoClientAction
Constructor and Description |
---|
DefaultSpnegoClientAction() |
Modifier and Type | Method and Description |
---|---|
GSSContext |
getContext()
Get the GSSContext that was created after a service ticket was obtained
|
byte[] |
run()
Obtain a service ticket
|
void |
setMutualAuth(boolean mutualAuthentication)
Whether to enable mutual authentication or not.
|
void |
setServiceName(String serviceName)
The Service Name
|
void |
setUserNameServiceForm(boolean isUsernameServiceNameForm)
If true - sets the SPN form to "username"
If false(default) - the SPN form is "hostbased" |
public void setMutualAuth(boolean mutualAuthentication)
setMutualAuth
in interface SpnegoClientAction
public void setServiceName(String serviceName)
setServiceName
in interface SpnegoClientAction
public byte[] run()
run
in interface PrivilegedAction<byte[]>
run
in interface SpnegoClientAction
public GSSContext getContext()
getContext
in interface SpnegoClientAction
public void setUserNameServiceForm(boolean isUsernameServiceNameForm)
SpnegoClientAction
setUserNameServiceForm
in interface SpnegoClientAction
isUsernameServiceNameForm
- the isUsernameServiceNameForm to setCopyright © 2016 JBoss by Red Hat. All rights reserved.