Node Director
|
Public Member Functions | |
Credentials () | |
void | invalidate () |
void | setEntity (String entity) |
String | getEntity () |
void | setPrincipalPrompt (String prompt) |
void | setPasswordPrompt (String prompt) |
void | setDefaultPrincipal (String login) |
void | askUser () throws DirectorException |
prompt the user for a principal and password | |
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 |
Static Public Member Functions | |
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 | |
static final String | FILE_CREDENTIALS = "credentials" |
static final String | FILE_TMP_CREDENTIALS = "tmpcredentials" |
Protected Member Functions | |
void | fileCredentials () |
String | findAuth (String principal) |
Protected Attributes | |
String | principalPrompt = "Login" |
String | passwordPrompt = "Password" |
String | principal |
String | password |
String | entity |
boolean | cancelled = false |
boolean | file_tried = false |
sfi.director.util.Credentials.Credentials | ( | ) |
Referenced by sfi.director.util.Credentials.getCredentials().
|
static |
stores credentials in a file within the credentials directory.
Use FILE_CREDENTIALS and FILE_TMP_CREDENTIALS constants in preference to invent your own file names. Note that this procedure is not free of race conditions.
References sfi.director.util.Setup.configDomain, sfi.director.util.Credentials.entity, sfi.director.util.Setup.fileSeparator, sfi.director.util.Credentials.password, sfi.director.util.Credentials.principal, and sfi.director.util.Setup.rcdir.
Referenced by sfi.director.util.Credentials.addRemoteHostPw(), sfi.director.cli.storepassword.run(), and sfi.director.application.InstallerOpenLDAP.setRandomPassword().
|
static |
stores credentials for bootstrap invokers in temporary credentials file.
Helper procedure.
References sfi.director.util.Credentials.addFileCredentials(), and sfi.director.util.Credentials.FILE_TMP_CREDENTIALS.
Referenced by sfi.director.schedule.Scheduler.executeCmd(), and sfi.director.application.AdminServer.oneConnection().
void sfi.director.util.Credentials.askUser | ( | ) | throws DirectorException |
prompt the user for a principal and password
Reimplemented in sfi.director.application.FrontendCredentials.
References sfi.director.util.Credentials.password, and sfi.director.util.Credentials.principal.
|
protected |
Reimplemented in sfi.director.util.KnownCredentials.
References sfi.director.util.Setup.configDomain, sfi.director.util.Credentials.entity, sfi.director.util.Logger.ERR, sfi.director.util.Credentials.FILE_CREDENTIALS, sfi.director.util.Credentials.FILE_TMP_CREDENTIALS, sfi.director.util.Setup.fileSeparator, sfi.director.util.Tools.log(), sfi.director.util.Credentials.password, sfi.director.util.Credentials.principal, and sfi.director.util.Setup.rcdir.
|
protected |
References sfi.director.util.Tools.findAuth().
|
static |
References sfi.director.util.Credentials.Credentials(), sfi.director.util.Credentials.entity, and sfi.director.util.Credentials.setEntity().
Referenced by sfi.director.invoker.SSHInvoker.alternateBootstrap(), sfi.director.cli.passwd.run(), sfi.director.repository.JDBC.setURL(), sfi.director.repository.LDAP.setURL(), and sfi.director.repository.LDAPndk.setURL().
String sfi.director.util.Credentials.getEntity | ( | ) |
String sfi.director.util.Credentials.getPassword | ( | ) | throws DirectorException |
get the password used for authentication
References sfi.director.util.Credentials.password.
Referenced by sfi.director.invoker.SSHInvoker.alternateBootstrap(), sfi.director.repository.JDBC.getConnection(), sfi.director.cli.passwd.run(), sfi.director.repository.LDAP.setURL(), and sfi.director.repository.LDAPndk.setURL().
String sfi.director.util.Credentials.getPrincipal | ( | ) | throws DirectorException |
get the principal ("Login") used for authentication.
References sfi.director.util.Credentials.principal.
Referenced by sfi.director.repository.JDBC.getConnection(), sfi.director.cli.passwd.run(), sfi.director.repository.LDAP.setURL(), and sfi.director.repository.LDAPndk.setURL().
void sfi.director.util.Credentials.invalidate | ( | ) |
References sfi.director.util.Credentials.password.
Referenced by sfi.director.repository.LDAP.setURL(), and sfi.director.repository.LDAPndk.setURL().
boolean sfi.director.util.Credentials.isCancelled | ( | ) |
determine if authentication has been cancelled
References sfi.director.util.Credentials.cancelled.
Referenced by sfi.director.repository.JDBC.getConnection(), sfi.director.repository.LDAP.setURL(), and sfi.director.repository.LDAPndk.setURL().
|
static |
Referenced by sfi.director.cli.frinterface.run().
void sfi.director.util.Credentials.setDefaultPrincipal | ( | String | login | ) |
References sfi.director.util.Credentials.principal.
void sfi.director.util.Credentials.setEntity | ( | String | entity | ) |
References sfi.director.util.Credentials.entity.
Referenced by sfi.director.util.Credentials.getCredentials().
|
static |
Referenced by sfi.director.util.Init.setup_frinterface().
void sfi.director.util.Credentials.setPasswordPrompt | ( | String | prompt | ) |
References sfi.director.util.Credentials.passwordPrompt.
void sfi.director.util.Credentials.setPrincipalPrompt | ( | String | prompt | ) |
References sfi.director.util.Credentials.principalPrompt.
|
protected |
|
protected |
|
static |
|
static |
|
protected |
|
protected |
Referenced by sfi.director.util.Credentials.addFileCredentials(), sfi.director.util.Credentials.askUser(), sfi.director.util.Credentials.fileCredentials(), sfi.director.util.Credentials.getPassword(), sfi.director.util.Credentials.invalidate(), sfi.director.util.KnownCredentials.KnownCredentials(), and sfi.director.application.FrontendCredentials.setCredentials().
|
protected |
Referenced by sfi.director.util.Credentials.setPasswordPrompt().
|
protected |
Referenced by sfi.director.util.Credentials.addFileCredentials(), sfi.director.util.Credentials.askUser(), sfi.director.util.Credentials.fileCredentials(), sfi.director.util.Credentials.getPrincipal(), sfi.director.util.KnownCredentials.KnownCredentials(), sfi.director.application.FrontendCredentials.setCredentials(), and sfi.director.util.Credentials.setDefaultPrincipal().
|
protected |
Referenced by sfi.director.util.Credentials.setPrincipalPrompt().