Package org.apache.wss4j.common.kerberos
Interface KerberosTokenDecoder
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
Modifier and TypeMethodDescriptionvoidclear()Clear all internal informationbyte[]Get the session key from the tokenvoidsetSubject(Subject subject) Set the SubjectvoidsetToken(byte[] token) Set the AP-REQ Kerberos Token
-
Method Details
-
setToken
void setToken(byte[] token) Set the AP-REQ Kerberos Token- Parameters:
token- the AP-REQ Kerberos Token
-
setSubject
Set the Subject- Parameters:
subject- the Subject
-
getSessionKey
Get the session key from the token- Returns:
- the session key from the token
- Throws:
KerberosTokenDecoderException
-
clear
void clear()Clear all internal information
-