public final class Krb5Helper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static Exception |
exception |
private static Method |
getClientSubject |
private static Method |
getPrincipalHostName |
private static Method |
getServerPrincipalName |
private static Method |
getServerSubject |
private static Method |
getServiceCreds |
private static Method |
getServicePermission |
private static String |
IMPL_CLASS |
private static Method |
isRelated |
private static Object |
proxy |
private static Class<?> |
proxyClass |
| 限定符 | 构造器和说明 |
|---|---|
private |
Krb5Helper() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static void |
ensureAvailable() |
static Subject |
getClientSubject(AccessControlContext acc)
Returns the Subject associated with client-side of the SSL socket.
|
static String |
getPrincipalHostName(Principal principal)
Returns the hostname embedded in the principal name.
|
static String |
getServerPrincipalName(Object serviceCreds)
Returns the server-side principal name associated with the KerberosKey.
|
static Subject |
getServerSubject(AccessControlContext acc)
Returns the Subject associated with server-side of the SSL socket.
|
static Object |
getServiceCreds(AccessControlContext acc)
Returns the KerberosKeys for the default server-side principal.
|
static Permission |
getServicePermission(String principalName,
String action)
Returns a ServicePermission for the principal name and action.
|
private static void |
init() |
private static Object |
invoke(Method method,
Object... args) |
static boolean |
isRelated(Subject subject,
Principal princ)
Determines if the Subject might contain creds for princ.
|
private static final Class<?> proxyClass
private static Object proxy
private static Method getClientSubject
private static Method getServerSubject
private static Method getServiceCreds
private static Method getServerPrincipalName
private static Method getPrincipalHostName
private static Method getServicePermission
private static Method isRelated
private static Exception exception
private static void init()
throws InstantiationException,
IllegalAccessException,
NoSuchMethodException
private static void ensureAvailable()
public static Subject getClientSubject(AccessControlContext acc) throws LoginException
LoginExceptionpublic static Subject getServerSubject(AccessControlContext acc) throws LoginException
LoginExceptionpublic static Object getServiceCreds(AccessControlContext acc) throws LoginException
LoginExceptionpublic static String getServerPrincipalName(Object serviceCreds)
public static String getPrincipalHostName(Principal principal)
public static Permission getServicePermission(String principalName, String action)
Copyright © 2023. All rights reserved.