org.apache.wss4j.common.kerberos
Class KerberosTokenDecoderImpl

java.lang.Object
  extended by org.apache.wss4j.common.kerberos.KerberosTokenDecoderImpl
All Implemented Interfaces:
KerberosTokenDecoder

public class KerberosTokenDecoderImpl
extends Object
implements KerberosTokenDecoder


Constructor Summary
KerberosTokenDecoderImpl()
           
 
Method Summary
 void clear()
          Clear all internal information
 String getClientPrincipalName()
          Get the client principal name from the decoded service ticket.
 byte[] getSessionKey()
          Get the session key from the token
 void setSubject(Subject subject)
          Set the Subject
 void setToken(byte[] token)
          Set the AP-REQ Kerberos Token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KerberosTokenDecoderImpl

public KerberosTokenDecoderImpl()
Method Detail

clear

public void clear()
Clear all internal information

Specified by:
clear in interface KerberosTokenDecoder

setToken

public void setToken(byte[] token)
Set the AP-REQ Kerberos Token

Specified by:
setToken in interface KerberosTokenDecoder
Parameters:
token - the AP-REQ Kerberos Token

setSubject

public void setSubject(Subject subject)
Set the Subject

Specified by:
setSubject in interface KerberosTokenDecoder
Parameters:
subject - the Subject

getSessionKey

public byte[] getSessionKey()
                     throws KerberosTokenDecoderException
Get the session key from the token

Specified by:
getSessionKey in interface KerberosTokenDecoder
Returns:
the session key from the token
Throws:
KerberosTokenDecoderException

getClientPrincipalName

public String getClientPrincipalName()
                              throws KerberosTokenDecoderException
Get the client principal name from the decoded service ticket.

Returns:
the client principal name
Throws:
KerberosTokenDecoderException


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