@Override public String toString() { return getName(); }
/** * Starts the realms. * * @throws Exception */ protected synchronized void startRealms() throws Exception { if (this.realms != null) { for (Realm realm : this.realms) { realm.start(); } } }
/** * Stops the realms. * * @throws Exception */ protected synchronized void stopRealms() throws Exception { if (this.realms != null) { for (Realm realm : this.realms) { realm.stop(); } } }
new DigestAuthenticator(context, nextRealm.getName(), propertyUtil.get( OasProps.PROP_CHALLENGE_AUTH_SECRET, OasProps.DEF_CHALLENGE_AUTH_SECRET)); if(nextRealm.getVerifier() instanceof DigestVerifier) result.setVerifier(nextRealm.getVerifier()); else if(nextRealm.getVerifier() instanceof LocalVerifier) ((DigestAuthenticator)result).setWrappedVerifier((LocalVerifier)nextRealm.getVerifier()); + nextRealm.getVerifier().toString()); result.setEnroler(nextRealm.getEnroler()); StandardCharsets.UTF_8); result = new FixedRedirectCookieAuthenticator(context, nextRealm.getName(), secretKey); result.setVerifier(nextRealm.getVerifier()); result.setEnroler(nextRealm.getEnroler());
/** * Sets the modifiable series of parameters. This method clears the current * series and adds all entries in the parameter series. * * @param parameters * A series of parameters. */ public void setParameters(Series<Parameter> parameters) { synchronized (getParameters()) { if (parameters != getParameters()) { getParameters().clear(); if (parameters != null) { getParameters().addAll(parameters); } } } }
/** * Finds the realm with the given name. * * @param name * The name. * @return The realm found or null. */ public Realm getRealm(String name) { if (name != null) { for (Realm realm : getRealms()) { if (name.equals(realm.getName())) { return realm; } } } return null; }