org.apache.ws.security.spnego
Class DefaultSpnegoServiceAction

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

public class DefaultSpnegoServiceAction
extends Object
implements SpnegoServiceAction

This class represents a PrivilegedAction implementation to validate a received (SPNEGO) ticket to a KDC.


Constructor Summary
DefaultSpnegoServiceAction()
           
 
Method Summary
 GSSContext getContext()
          Get the GSSContext that was created after a service ticket was obtained
 byte[] run()
          Validate a service ticket
 void setServiceName(String serviceName)
          The Service Name
 void setTicket(byte[] ticket)
          Set the ticket to validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSpnegoServiceAction

public DefaultSpnegoServiceAction()
Method Detail

setTicket

public void setTicket(byte[] ticket)
Set the ticket to validate

Specified by:
setTicket in interface SpnegoServiceAction

setServiceName

public void setServiceName(String serviceName)
The Service Name

Specified by:
setServiceName in interface SpnegoServiceAction

run

public byte[] run()
Validate a service ticket

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

getContext

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

Specified by:
getContext in interface SpnegoServiceAction


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