/* * (non-Javadoc) * * @see org.jboss.security.plugins.JaasSecurityDomainMBean#setKeyStorePass(java.lang.String) */ @ManagementProperty( use = {ViewUse.CONFIGURATION}, description = "The keystore password", mandatory = true) public void setKeyStorePass(String password) throws Exception { this.keyStorePassword = Util.loadPassword(password); }
/* * (non-Javadoc) * * @see org.jboss.security.plugins.JaasSecurityDomainMBean#setServiceAuthToken(java.lang.String) */ @ManagementProperty( use = {ViewUse.CONFIGURATION}, description = "The service authentication token", mandatory = false) public void setServiceAuthToken(String serviceAuthToken) throws Exception { this.serviceAuthToken = Util.loadPassword(serviceAuthToken); }
protected String getBindCredential() { String bindCredential = options.get(BIND_CREDENTIAL); if (bindCredential.startsWith("{EXT}")) { try { bindCredential = new String(org.jboss.security.Util.loadPassword(bindCredential)); } catch (Exception e1) { PicketBoxLogger.LOGGER.errorDecryptingBindCredential(e1); } } String securityDomain = options.get(SECURITY_DOMAIN_OPT); if (securityDomain != null) { try { ObjectName serviceName = new ObjectName(securityDomain); char[] tmp = DecodeAction.decode(bindCredential, serviceName); bindCredential = new String(tmp); } catch (Exception e) { PicketBoxLogger.LOGGER.errorDecryptingBindCredential(e); } } return bindCredential; }
/* * (non-Javadoc) * * @see org.jboss.security.plugins.JaasSecurityDomainMBean#setTrustStorePass(java.lang.String) */ @ManagementProperty( use = {ViewUse.CONFIGURATION}, description = "The truststore password") public void setTrustStorePass(String password) throws Exception { this.trustStorePassword = Util.loadPassword(password); }