org.apache.wss4j.common.kerberos
Interface KerberosTokenDecoder

All Known Implementing Classes:
KerberosTokenDecoderImpl

public interface KerberosTokenDecoder

This interface defines a pluggable way to obtain a session key given an AP-REQ Kerberos token and a Subject. The session key is needed on the receiving side when it is used for message signature or encryption. A default implementation is not shipped with WSS4J due to a dependency on internal APIs or ASN1 parsers.


Method Summary
 void clear()
          Clear all internal information
 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
 

Method Detail

setToken

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

Parameters:
token - the AP-REQ Kerberos Token

setSubject

void setSubject(Subject subject)
Set the Subject

Parameters:
subject - the Subject

getSessionKey

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

Returns:
the session key from the token
Throws:
KerberosTokenDecoderException

clear

void clear()
Clear all internal information



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