Node Director
Public Member Functions | List of all members
sfi.director.application.FrontendCredentials Class Reference
Inheritance diagram for sfi.director.application.FrontendCredentials:
sfi.director.util.Credentials

Public Member Functions

 FrontendCredentials ()
synchronized void askUser () throws DirectorException
 add ourselves to the list of pending authentications and wait until we get principal/password from the frontend
synchronized void setCredentials (String principal, String pwd)
 used by the frontend: notify credentials object of principal and password a user entered
synchronized void cancel ()
 used by the frontend: notify credentials object of cancellation
- Public Member Functions inherited from sfi.director.util.Credentials
 Credentials ()
void invalidate ()
void setEntity (String entity)
String getEntity ()
void setPrincipalPrompt (String prompt)
void setPasswordPrompt (String prompt)
void setDefaultPrincipal (String login)
String getPrincipal () throws DirectorException
 get the principal ("Login") used for authentication.
String getPassword () throws DirectorException
 get the password used for authentication
boolean isCancelled ()
 determine if authentication has been cancelled

Additional Inherited Members

- Static Public Member Functions inherited from sfi.director.util.Credentials
static void setMethod (Credentials cred)
static void setAppCredentialsFile (String filename)
static Credentials getCredentials (String entity) throws DirectorException
static void addFileCredentials (String fileName, String entity, String principal, String password) throws IOException
 stores credentials in a file within the credentials directory.
static void addRemoteHostPw (String login, String pw) throws DirectorException
 stores credentials for bootstrap invokers in temporary credentials file.
- Static Public Attributes inherited from sfi.director.util.Credentials
static final String FILE_CREDENTIALS = "credentials"
static final String FILE_TMP_CREDENTIALS = "tmpcredentials"
- Protected Member Functions inherited from sfi.director.util.Credentials
void fileCredentials ()
String findAuth (String principal)
- Protected Attributes inherited from sfi.director.util.Credentials
String principalPrompt = "Login"
String passwordPrompt = "Password"
String principal
String password
String entity
boolean cancelled = false
boolean file_tried = false

Constructor & Destructor Documentation

sfi.director.application.FrontendCredentials.FrontendCredentials ( )

Member Function Documentation

synchronized void sfi.director.application.FrontendCredentials.askUser ( ) throws DirectorException

add ourselves to the list of pending authentications and wait until we get principal/password from the frontend

Reimplemented from sfi.director.util.Credentials.

References sfi.director.application.FrontendInterface.addPending(), and sfi.director.application.FrontendInterface.removePending().

synchronized void sfi.director.application.FrontendCredentials.cancel ( )

used by the frontend: notify credentials object of cancellation

References sfi.director.util.Credentials.cancelled.

synchronized void sfi.director.application.FrontendCredentials.setCredentials ( String  principal,
String  pwd 
)

used by the frontend: notify credentials object of principal and password a user entered

References sfi.director.util.Credentials.password, and sfi.director.util.Credentials.principal.

Referenced by sfi.director.application.FrontendHTTPServer.auth_login(), and sfi.director.application.FrontendInterface.executeCommand().


The documentation for this class was generated from the following file: