Package org.keycloak.common.util
Class KerberosJdkProvider
java.lang.Object
org.keycloak.common.util.KerberosJdkProvider
Provides abstraction to handle differences between various JDK vendors (Sun, IBM)
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Configuration
createJaasConfigurationForServer
(String keytab, String serverPrincipal, boolean debug) abstract Configuration
createJaasConfigurationForUsernamePasswordLogin
(boolean debug) static KerberosJdkProvider
abstract KerberosTicket
gssCredentialToKerberosTicket
(KerberosTicket kerberosTicket, GSSCredential gssCredential) boolean
kerberosTicketToGSSCredential
(KerberosTicket kerberosTicket) kerberosTicketToGSSCredential
(KerberosTicket kerberosTicket, int lifetime, int usage)
-
Constructor Details
-
KerberosJdkProvider
public KerberosJdkProvider()
-
-
Method Details
-
createJaasConfigurationForServer
public abstract Configuration createJaasConfigurationForServer(String keytab, String serverPrincipal, boolean debug) -
createJaasConfigurationForUsernamePasswordLogin
-
gssCredentialToKerberosTicket
public abstract KerberosTicket gssCredentialToKerberosTicket(KerberosTicket kerberosTicket, GSSCredential gssCredential) -
kerberosTicketToGSSCredential
-
isKerberosAvailable
public boolean isKerberosAvailable()- Returns:
- true if Kerberos (GSS API) is available in underlying JDK and it is possible to use it. False otherwise
-
kerberosTicketToGSSCredential
public GSSCredential kerberosTicketToGSSCredential(KerberosTicket kerberosTicket, int lifetime, int usage) -
getProvider
-