SQLFire 1.1

com.vmware.sqlfire.auth.callback
Interface CredentialInitializer


public interface CredentialInitializer

Specifies the mechanism to obtain credentials for server to join. It is mandatory to implement this when running in secure mode and custom implementation of UserAuthenticator is configured on the server/locator.

To configure a custom user authenticator on server/locator, fully qualified class name of the implementation of UserAuthenticator should be mentioned in sqlfire.authentication.provider property.


Method Summary
 Properties getCredentials(Properties securityProps)
          Initialize with the given set of security properties and return the credentials for the peer/client as properties.
 

Method Detail

getCredentials

Properties getCredentials(Properties securityProps)
                          throws SQLException
Initialize with the given set of security properties and return the credentials for the peer/client as properties. This method can modify the given set of properties. For example it may invoke external agents or even interact with the user. Normally it is expected that implementations will filter out security-* properties that are needed for credentials and return only those.

Parameters:
securityProps - the security properties obtained using a call to that will be used for obtaining the credentials
Returns:
the credentials to be used for the given server
Throws:
SQLException - in case of failure to obtain the credentials

SQLFire 1.1

Copyright © 2010-2013 VMware, Inc. All rights reserved.