public class Krb5TokenUtils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
Krb5TokenUtils.LoginCallbackHandler |
构造器和说明 |
---|
Krb5TokenUtils() |
限定符和类型 | 方法和说明 |
---|---|
static byte[] |
decodeDataFromStream(java.io.DataInput in) |
static void |
encodeDataToStream(byte[] data,
java.io.DataOutput out) |
javax.security.auth.Subject |
generateSecuritySubject(java.lang.String jassLoginConfig,
java.lang.String username,
java.lang.String password) |
static byte[] |
initiateSecurityContext(javax.security.auth.Subject subject,
java.lang.String servicePrincipalName) |
static java.lang.String |
validateSecurityContext(javax.security.auth.Subject subject,
byte[] serviceTicket) |
public javax.security.auth.Subject generateSecuritySubject(java.lang.String jassLoginConfig, java.lang.String username, java.lang.String password) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
public static byte[] initiateSecurityContext(javax.security.auth.Subject subject, java.lang.String servicePrincipalName) throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSException
public static java.lang.String validateSecurityContext(javax.security.auth.Subject subject, byte[] serviceTicket) throws org.ietf.jgss.GSSException
org.ietf.jgss.GSSException
public static void encodeDataToStream(byte[] data, java.io.DataOutput out) throws java.lang.Exception
java.lang.Exception
public static byte[] decodeDataFromStream(java.io.DataInput in) throws java.lang.Exception
java.lang.Exception