Class SPNEGOAuthenticator
- java.lang.Object
-
- org.keycloak.federation.kerberos.impl.SPNEGOAuthenticator
-
public class SPNEGOAuthenticator extends Object
- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description SPNEGOAuthenticator(CommonKerberosConfig kerberosConfig, KerberosServerSubjectAuthenticator kerberosSubjectAuthenticator, String spnegoToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate()
protected GSSContext
establishContext()
String
getAuthenticatedUsername()
String
getResponseToken()
String
getSerializedDelegationCredential()
boolean
isAuthenticated()
protected void
logAuthDetails(GSSContext gssContext)
-
-
-
Constructor Detail
-
SPNEGOAuthenticator
public SPNEGOAuthenticator(CommonKerberosConfig kerberosConfig, KerberosServerSubjectAuthenticator kerberosSubjectAuthenticator, String spnegoToken)
-
-
Method Detail
-
authenticate
public void authenticate()
-
isAuthenticated
public boolean isAuthenticated()
-
getResponseToken
public String getResponseToken()
-
getSerializedDelegationCredential
public String getSerializedDelegationCredential()
-
getAuthenticatedUsername
public String getAuthenticatedUsername()
- Returns:
- username to be used in Keycloak. Username is authenticated kerberos principal without realm name
-
establishContext
protected GSSContext establishContext() throws GSSException, IOException
- Throws:
GSSException
IOException
-
logAuthDetails
protected void logAuthDetails(GSSContext gssContext) throws GSSException
- Throws:
GSSException
-
-