Package org.jgroups.auth
Class Krb5TokenUtils
java.lang.Object
org.jgroups.auth.Krb5TokenUtils
Support class that implements all the low level Kerberos security calls
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]static voidencodeDataToStream(byte[] data, DataOutput out) static SubjectgenerateSecuritySubject(String jassLoginConfig, String username, String password) static byte[]initiateSecurityContext(Subject subject, String servicePrincipalName) static StringvalidateSecurityContext(Subject subject, byte[] serviceTicket)
-
Field Details
-
log
-
krb5Oid
-
-
Constructor Details
-
Krb5TokenUtils
public Krb5TokenUtils()
-
-
Method Details
-
generateSecuritySubject
public static Subject generateSecuritySubject(String jassLoginConfig, String username, String password) throws LoginException - Throws:
LoginException
-
initiateSecurityContext
public static byte[] initiateSecurityContext(Subject subject, String servicePrincipalName) throws GSSException - Throws:
GSSException
-
validateSecurityContext
public static String validateSecurityContext(Subject subject, byte[] serviceTicket) throws GSSException - Throws:
GSSException
-
encodeDataToStream
- Throws:
Exception
-
decodeDataFromStream
- Throws:
Exception
-