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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear all internal informationbyte[]
getSessionKey()
Get the session key from the tokenvoid
setSubject(Subject subject)
Set the Subjectvoid
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
-
-