public static final String MESSAGE = "hello.message"; /** * Field for Message property. */ private String message; /** * Return Message property. * * @return Message property */ public String getMessage() { return message; } private StringUtil stringUtil = new StringUtil(); public StringUtil getStringUtil() { return stringUtil; } public String execute() throws Exception { setMessage(getText(MESSAGE)); OgnlRuntime.setMethodAccessor(StringUtil.class, stringUtil); return SUCCESS; }
builder.append(toHex(digest).toLowerCase());
if (password == null) password = new StringUtil().randomAlphaNumericString(MANAGEMENT_MODE_PASSWORD_LENGTH);
private Class<? extends SocketFactory> createSslSocketFactoryOverrideClass(final TrustStore trustStore) String clazzName = new StringUtil().createUniqueJavaName(managerName); SSLContext sslContext = null; try
private void reloadAclFile() { try { recreateAccessController(); LOGGER.debug("Calling changeAttributes to try to force update"); // force the change listener to fire, causing the parent broker to update its cache changeAttributes(Collections.<String,Object>emptyMap()); getEventLogger().message(AccessControlMessages.LOADED(StringUtil.elideDataUrl(getPath()))); } catch(RuntimeException e) { throw new IllegalConfigurationException(e.getMessage(), e); } }
private static void validateTrustStore(FileTrustStore trustStore) final String loggableStoreUrl = StringUtil.elideDataUrl(trustStore.getStoreUrl()); try
private void validateKeyStoreAttributes(FileKeyStore<?> fileKeyStore) final String loggableStoreUrl = StringUtil.elideDataUrl(fileKeyStore.getStoreUrl()); try
return StringUtil.toHex(credentialDigest);