|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.java.security.Authenticator
Manages the authentication process for identities within a JVM. The Authenticator achieves application authentication by prompting for user credentials when an authentication request is issued. The Authenticator uses the underlying requestor to perform the actual authentication.
NOTE: The APIs required for the development of authentication protocols and storage of long-term authentication secrets are not part of the public release at this time, however, they may be made public in a future release.
Identity
,
IdentityScope
,
BinderyIdentity
,
BinderyIdentityScope
,
NdsIdentity
,
NdsIdentityScope
Method Summary | |
static void |
createTokens(Identity identity)
Deprecated. This API should not be used, and may not work on some platforms. It has been replaced with createTokens(Identity admin, Identity user) |
static void |
createTokens(Identity admin,
Identity user)
Creates new authentication login secrets or tokens for an Identity object. |
static Identity[] |
getIdentities()
Returns a list of currently authenticated Identity objects. |
static Identity[] |
getIdentities(IdentityScope scope)
Returns a list of currently authenticated Identity objects within the specified scope. |
static java.lang.String |
getLastUserDomain()
Returns the domain of the identity that was last successfully acted on by the Authenticator (e.g. |
static java.lang.String |
getLastUsername()
Returns the name of the identity that was last successfully acted on by the Authenticator (e.g. |
static void |
login(Identity identity)
Performs a login/logout of the Identity to its scope. |
static void |
logout(Identity identity)
Logs out (destroys) the specified Identity object and the associated short-term credentials from its identity scope. |
static void |
modifyTokens(Identity identity)
Modifies existing authentication login secrets or tokens for an Identity object. |
static void |
verifyTokens(Identity identity)
Verifies existing authentication login secrets or tokens for an Identity object. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static void login(Identity identity) throws LoginException
identity
- The Identity object to be logged in.public static void modifyTokens(Identity identity) throws ModifyTokensException
For password systems, this means changing a user password.
identity
- The Identity whose login tokens are to be
modified.public static void createTokens(Identity identity) throws CreateTokensException
Typically, administrators use this method to initialize a user object with some secret. For password systems, this means creating a new user password.
identity
- The Identity object whose login tokens are to
be created.public static void createTokens(Identity admin, Identity user) throws CreateTokensException
Typically, administrators use this method to initialize a user object with some secret. For password systems, this means creating a new user password.
admin
- The Identity object (typically, one with admin rights)
whose permissions are to be used for creating user tokens.user
- The Identity object whose login tokens are to
be created.public static void verifyTokens(Identity identity) throws VerifyTokensException
For password systems, this means verifying a user password.
identity
- The Identity whose login tokens are to be
verified.public static void logout(Identity identity) throws LogoutException
identity
- The Identity object to be logged out.public static Identity[] getIdentities() throws GetIdentitiesException
public static Identity[] getIdentities(IdentityScope scope) throws GetIdentitiesException
scope
- The IdentityScope to be searched for
authenticated Identity objects.public static java.lang.String getLastUsername()
public static java.lang.String getLastUserDomain()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |