public class GssApiMechanisms extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GSSAPI_HOST_PREFIX
Prefix to use with
GSSName.NT_HOSTBASED_SERVICE. |
static Oid |
KERBEROS_5
The
Oid of Kerberos 5. |
static Oid |
SPNEGO
SGNEGO is not to be used with ssh.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeContextSilently(GSSContext context)
Closes (disposes of) a
GSSContext ignoring any
GSSExceptions. |
static GSSContext |
createContext(Oid mechanism,
String fqdn)
Creates a
GSSContext for the given mechanism to authenticate with
the host given by fqdn. |
static void |
failed(Oid mechanism)
Mark the mechanisms as failed.
|
static String |
getCanonicalName(InetSocketAddress remote)
Determines a canonical host name for use use with GSS-API.
|
static Collection<Oid> |
getSupportedMechanisms()
Retrieves an immutable collection of the supported mechanisms.
|
static InetAddress |
resolve(InetSocketAddress remote)
Resolves an
InetSocketAddress. |
static void |
worked(Oid mechanism)
Report that this mechanism was used successfully.
|
public static final String GSSAPI_HOST_PREFIX
GSSName.NT_HOSTBASED_SERVICE.public static final Oid SPNEGO
@NonNull public static Collection<Oid> getSupportedMechanisms()
public static void worked(@NonNull Oid mechanism)
mechanism - that workedpublic static void failed(@NonNull Oid mechanism)
mechanism - to markpublic static InetAddress resolve(@NonNull InetSocketAddress remote)
InetSocketAddress.remote - to resolveInetAddress, or null if unresolved.@NonNull public static String getCanonicalName(@NonNull InetSocketAddress remote)
remote - to get the host name fromunprocessed host name.public static GSSContext createContext(@NonNull Oid mechanism, @NonNull String fqdn)
GSSContext for the given mechanism to authenticate with
the host given by fqdn.mechanism - Oid of the mechanism to usefqdn - fully qualified domain name of the host to authenticate withnull otherwisepublic static void closeContextSilently(GSSContext context)
GSSContext ignoring any
GSSExceptions.context - to disposeCopyright © 2018 Eclipse JGit Project. All rights reserved.