Novell exteNd Messaging Platform 5.1

com.sssw.jbroker.api.security
Interface Realm


public interface Realm

The Realm defines a group of Principals and provides a way to authenticate them


Field Summary
static String PUBLIC_KEY_REALM
          The IIOP/SSL distinguished Realm in which the authentication is done using public keys technology instead of username/passphrase.
 
Method Summary
 boolean authenticateBasic(String principal, byte[] passPhrase)
          Authenticate the given principal using the provided pass phrase.
 boolean authenticateDigest(String principal, byte[] digest, byte[] nonce)
          Authenticate the given principal using the provided digest and nonce.
 void initialize(Properties props, ORB orb)
          The realm implementation is specified as a properties file, where the name of the realm is the name of the properties file.
 

Field Detail

PUBLIC_KEY_REALM

public static final String PUBLIC_KEY_REALM
The IIOP/SSL distinguished Realm in which the authentication is done using public keys technology instead of username/passphrase.

Since:
jBroker 3.0
See Also:
Constant Field Values
Method Detail

authenticateBasic

public boolean authenticateBasic(String principal,
                                 byte[] passPhrase)
Authenticate the given principal using the provided pass phrase. If authentication succeeds, return true. Otherwise, return false.


authenticateDigest

public boolean authenticateDigest(String principal,
                                  byte[] digest,
                                  byte[] nonce)
Authenticate the given principal using the provided digest and nonce. The digest is an MD5 hash of {MD5 hash of the realm name, principal, and the pass phrase}, and the nonce. If authentication succeeds, return true. Otherwise, return false.


initialize

public void initialize(Properties props,
                       ORB orb)
The realm implementation is specified as a properties file, where the name of the realm is the name of the properties file. The properties file can provide other properties to initialize the realm. When a realm is loaded by jBroker, it calls a null constructor on it and then calls the initialize method. The contents of the properties file is realm implementation specific.


Novell exteNd Messaging Platform 5.1

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