Top Description Inners Fields Constructors Methods
org.keycloak.common.util

public Class KerberosSerializationUtils

extends Object
Class Inheritance
Imports
org.ietf.jgss.GSSCredential, javax.security.auth.kerberos.KerberosPrincipal, .KerberosTicket, java.io.ByteArrayInputStream, .ByteArrayOutputStream, .IOException, .ObjectInputStream, .ObjectOutput, .ObjectOutputStream, .Serializable, java.net.InetAddress

Provides serialization/deserialization of kerberos org.ietf.jgss.GSSCredential, so it can be transmitted from auth-server to the application and used for further calls to kerberos-secured services
Author
Marek Posolda

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Object
deserialize(String serialized)

public static GSSCredential
deserializeCredential(String serializedCred)

private static String
public static String
serializeCredential(KerberosTicket kerberosTicket, GSSCredential gssCredential)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

JAVA_INFOback to summary
public static final String JAVA_INFO

Constructor Detail

KerberosSerializationUtilsback to summary
private KerberosSerializationUtils()

Method Detail

deserializeback to summary
private static Object deserialize(String serialized) throws ClassNotFoundException, IOException
deserializeCredentialback to summary
public static GSSCredential deserializeCredential(String serializedCred) throws KerberosSerializationException
serializeback to summary
private static String serialize(Serializable obj) throws IOException
serializeCredentialback to summary
public static String serializeCredential(KerberosTicket kerberosTicket, GSSCredential gssCredential) throws KerberosSerializationException
org.keycloak.common.util back to summary

public Class KerberosSerializationUtils.KerberosSerializationException

extends RuntimeException
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public

Constructor Detail

KerberosSerializationExceptionback to summary
public KerberosSerializationException(String message, Throwable cause)
KerberosSerializationExceptionback to summary
public KerberosSerializationException(String message)