@Override public void postConstruct() { secureAdmin = domain.getSecureAdmin(); }
final protected SecureAdmin secureAdmin() throws TransactionFailure { if (secureAdmin == null) { secureAdmin = domain.getSecureAdmin(); if (secureAdmin == null) { secureAdmin = /* topLevelContext(). */writableSecureAdmin(); secureAdmin.setSpecialAdminIndicator(specialAdminIndicator()); } } return secureAdmin; }
@Override public synchronized void postConstruct() { secureAdmin = domain.getSecureAdmin(); // Ensure that the admin password is set as required if (as.usesFileRealm()) { try { AuthRealm ar = as.getAssociatedAuthRealm(); if (FileRealm.class.getName().equals(ar.getClassname())) { String adminKeyFilePath = ar.getPropertyValue("file"); FileRealm fr = new FileRealm(adminKeyFilePath); if (!fr.hasAuthenticatableUser()) { ADMSEC_LOGGER.log(Level.SEVERE, AdminLoggerInfo.mSecureAdminEmptyPassword); throw new IllegalStateException(ADMSEC_LOGGER.getResourceBundle() .getString(AdminLoggerInfo.mSecureAdminEmptyPassword)); } } } catch (Exception ex) { ADMSEC_LOGGER.log(Level.SEVERE, AdminLoggerInfo.mUnexpectedException, ex); throw new RuntimeException(ex); } } }
private void findServices(final ServiceLocator sl) { domain = sl.getService(Domain.class); secureAdmin = domain.getSecureAdmin(); authTokenManager = sl.getService(AuthTokenManager.class); localPassword = sl.getService(LocalPassword.class); restSessionManager = sl.getService(RestSessionManager.class); }
SecureAdmin writableSecureAdmin() throws TransactionFailure { if (secureAdmin_w == null) { /* * Create the secure admin node if it is not already there. */ SecureAdmin secureAdmin = d.getSecureAdmin(); if (secureAdmin == null) { secureAdmin_w = d.createChild(SecureAdmin.class); d.setSecureAdmin(secureAdmin_w); } else { /* * It already existed, so join it to the transaction. */ secureAdmin_w = t.enroll(secureAdmin); } } return secureAdmin_w; } }
private synchronized void completeInit(final ServiceLocator habitat) { this.habitat = habitat; final Domain domain = habitat.getService(Domain.class); secureAdmin = domain.getSecureAdmin(); serverEnv = habitat.getService(ServerEnvironment.class); this.secure = SecureAdmin.Util.isEnabled(secureAdmin); domainPasswordAliasStore = habitat.getService(DomainScopedPasswordAliasStore.class); setInteractive(false); }
private synchronized void completeInit(final ServiceLocator habitat) { this.habitat = habitat; final Domain domain = habitat.getService(Domain.class); secureAdmin = domain.getSecureAdmin(); serverEnv = habitat.getService(ServerEnvironment.class); this.secure = SecureAdmin.Util.isEnabled(secureAdmin); domainPasswordAliasStore = habitat.getService(DomainScopedPasswordAliasStore.class); setInteractive(false); }
return; secureAdmin = domain.getSecureAdmin(); isEnabled = SecureAdmin.Util.isEnabled(secureAdmin); configuredAdminIndicator = SecureAdmin.Util.configuredAdminIndicator(secureAdmin);
return; secureAdmin = domain.getSecureAdmin(); isEnabled = SecureAdmin.Util.isEnabled(secureAdmin); configuredAdminIndicator = SecureAdmin.Util.configuredAdminIndicator(secureAdmin);
SecureAdmin writableSecureAdmin() throws TransactionFailure { if (secureAdmin_w == null) { /* * Create the secure admin node if it is not already there. */ SecureAdmin secureAdmin = d.getSecureAdmin(); if (secureAdmin == null) { secureAdmin_w = writableDomain().createChild(SecureAdmin.class); writableDomain().setSecureAdmin(secureAdmin_w); } else { /* * It already existed, so join it to the transaction. */ secureAdmin_w = t.enroll(secureAdmin); } } return secureAdmin_w; } }
final ActionReport report = context.getActionReport(); secureAdmin = domain.getSecureAdmin(); if (SecureAdmin.Util.isEnabled(secureAdmin)) { if ((newpassword == null) || (newpassword.isEmpty())) {
secureAdmin = domain.getSecureAdmin(); if ((SecureAdmin.Util.isEnabled(secureAdmin)) && (authRealmName.equals(adminService.getAuthRealmName()))) {
secureAdmin = domain.getSecureAdmin(); if ((SecureAdmin.Util.isEnabled(secureAdmin)) && (adminService.getAuthRealmName().equals(authRealmName))) {