public class LunaProvider
extends java.security.AuthProvider
To use this provider, add the following line to your java.security file (replacing <n> with the appropriate value for your provider list):
security.provider.<n>=com.safenetinc.luna.provider.LunaProvider
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
LOGGER |
static java.util.Hashtable<java.lang.String,java.lang.String> |
MECHANISMS_FIPS |
static java.util.Hashtable<java.lang.String,java.lang.String> |
MECHANISMS_NON_FIPS |
| Constructor and Description |
|---|
LunaProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInfo() |
static LunaProvider |
getInstance()
Gets an instance of the
LunaProvider. |
java.lang.String |
getName() |
double |
getVersion() |
void |
login(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler) |
void |
logout() |
void |
setCallbackHandler(javax.security.auth.callback.CallbackHandler handler) |
clear, elements, entrySet, get, getProperty, getService, getServices, keys, keySet, load, put, putAll, putService, remove, removeService, toString, valuesgetProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesprotected static final java.util.logging.Logger LOGGER
public static java.util.Hashtable<java.lang.String,java.lang.String> MECHANISMS_NON_FIPS
public static java.util.Hashtable<java.lang.String,java.lang.String> MECHANISMS_FIPS
public static LunaProvider getInstance()
LunaProvider. This method should be used to get a LunaProvider instance if
not registering the provider statically but it is desired to pass a provider instance to the JCA getInstance
methods dynamically.
Example: KeyStore.getInstance("Luna", LunaProvider.getInstance());
LunaProvider instance.public java.lang.String getName()
getName in class java.security.Providerpublic java.lang.String getInfo()
getInfo in class java.security.Providerpublic double getVersion()
getVersion in class java.security.Providerpublic void login(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler)
throws javax.security.auth.login.LoginException
login in class java.security.AuthProviderjavax.security.auth.login.LoginExceptionpublic void logout()
throws javax.security.auth.login.LoginException
logout in class java.security.AuthProviderjavax.security.auth.login.LoginExceptionpublic void setCallbackHandler(javax.security.auth.callback.CallbackHandler handler)
setCallbackHandler in class java.security.AuthProviderCopyright 2014-2018 SafeNet. All rights reserved.