org.apache.ws.security.spnego
Class DefaultSpnegoClientAction

java.lang.Object
  extended by org.apache.ws.security.spnego.DefaultSpnegoClientAction
All Implemented Interfaces:
PrivilegedAction<byte[]>, SpnegoClientAction

public class DefaultSpnegoClientAction
extends Object
implements SpnegoClientAction

This class represents a PrivilegedAction implementation to obtain a (SPNEGO) service ticket from a Kerberos Key Distribution Center.


Constructor Summary
DefaultSpnegoClientAction()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpnegoClientAction

public DefaultSpnegoClientAction()
Method Detail

setMutualAuth

public void setMutualAuth(boolean mutualAuthentication)
Whether to enable mutual authentication or not.

Specified by:
setMutualAuth in interface SpnegoClientAction

setServiceName

public void setServiceName(String serviceName)
The Service Name

Specified by:
setServiceName in interface SpnegoClientAction

run

public byte[] run()
Obtain a service ticket

Specified by:
run in interface PrivilegedAction<byte[]>
Specified by:
run in interface SpnegoClientAction

getContext

public GSSContext getContext()
Get the GSSContext that was created after a service ticket was obtained

Specified by:
getContext in interface SpnegoClientAction


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.