protected AuthenticationInfo authenticationInfo() { return ((user != null || password != null) ? new AuthenticationInfo(user, password) : null); }
private String getPassword() { return authInfo != null ? authInfo.getPassword() : ""; }
private String getUser() { return authInfo != null ? authInfo.getUser() : ""; }
protected AuthenticationInfo authenticationInfo() { return ((user != null || password != null) ? new AuthenticationInfo(user, password) : null); }
private char[] getPassword() { return authInfo != null ? authInfo.getPassword() : "".toCharArray(); }
private String getUser() { return authInfo != null ? authInfo.getUser() : ""; }
protected AuthenticationInfo authenticationInfo() { return ((user != null || password != null) ? new AuthenticationInfo(user, password) : null); }
@Override protected synchronized AuthenticationInfo authenticationInfo() { AuthenticationInfo result = null; if (SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin)) { final SecureAdminInternalUser secureAdminInternalUser = SecureAdmin.Util.secureAdminInternalUser(secureAdmin); if (secureAdminInternalUser != null) { try { result = new AuthenticationInfo(secureAdminInternalUser.getUsername(), domainPasswordAliasStore.get(secureAdminInternalUser.getPasswordAlias())); } catch (Exception ex) { throw new RuntimeException(ex); } } } return result; }
@Override protected synchronized AuthenticationInfo authenticationInfo() { AuthenticationInfo result = null; if (SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin)) { final SecureAdminInternalUser secureAdminInternalUser = SecureAdmin.Util.secureAdminInternalUser(secureAdmin); if (secureAdminInternalUser != null) { try { result = new AuthenticationInfo(secureAdminInternalUser.getUsername(), domainPasswordAliasStore.get(secureAdminInternalUser.getPasswordAlias())); } catch (Exception ex) { throw new RuntimeException(ex); } } } return result; }
@Override protected AuthenticationInfo authenticationInfo() { AuthenticationInfo result = null; if (SecureAdmin.Util.isEnabled(secureAdmin) && SecureAdmin.Util.isUsingUsernamePasswordAuth(secureAdmin)) { final SecureAdminInternalUser secureAdminInternalUser = SecureAdmin.Util.secureAdminInternalUser(secureAdmin); if (secureAdminInternalUser != null) { try { String pw = masterPassword().getMasterPasswordAdapter().getPasswordForAlias(secureAdminInternalUser.getPasswordAlias()); result = new AuthenticationInfo(secureAdminInternalUser.getUsername(), pw); pw = null; } catch (Exception ex) { throw new RuntimeException(ex); } } } return result; }