Novell exteNd Messaging Platform 5.2

com.sssw.jbroker.api.security.CSIv2
Interface Authenticator


public interface Authenticator

Server side callback for Authentication and Trust evaluation.


Field Summary
static int ERROR_BADPASSWORD
          Error Code - the password for the given user is invalid.
static int ERROR_NOUSER
          Error Code - no such user exists.
static int ERROR_UNSPECIFIED
          Error Code - unspecified error during authentication.
static int SUCCESS
          Authentication was successful.
 
Method Summary
 boolean assertIdentity(IdentityToken identityToken)
          Evaluate trust in the given IdentityToken.
 int authenticate(InitialContextToken initialContextToken)
          Authenticate the username, password, realm contained in the given token.
 

Field Detail

SUCCESS

public static final int SUCCESS
Authentication was successful.

See Also:
Constant Field Values

ERROR_UNSPECIFIED

public static final int ERROR_UNSPECIFIED
Error Code - unspecified error during authentication.

See Also:
Constant Field Values

ERROR_NOUSER

public static final int ERROR_NOUSER
Error Code - no such user exists.

See Also:
Constant Field Values

ERROR_BADPASSWORD

public static final int ERROR_BADPASSWORD
Error Code - the password for the given user is invalid.

See Also:
Constant Field Values
Method Detail

authenticate

public int authenticate(InitialContextToken initialContextToken)
Authenticate the username, password, realm contained in the given token.

Parameters:
initialContextToken - the initial context token containing user, password, and realm
Returns:
SUCCESS if authentication suceeds. Otherwise return ERROR_UNSPECIFIED, ERROR_NOUSER, or ERROR_BADPASSWORD.

assertIdentity

public boolean assertIdentity(IdentityToken identityToken)
Evaluate trust in the given IdentityToken. The Authenticator can use the SecurityCurrent to determine the IP address and the certificate chain of the caller (if using IIOP/SSL).

Parameters:
identityToken - the identity token containing user and realm
Returns:
true is the caller is trusted. Otherwise return false.

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.