/** * Creates a ParameterMap from the @Param fields defined on the * injected objects provided in the constructor call. * @return ParameterMap for the parameters injected into the admin object * @throws IllegalArgumentException * @throws IllegalAccessException */ public ParameterMap extract() throws IllegalArgumentException, IllegalAccessException { return extract(Collections.EMPTY_SET); }
/** * Creates a new limited use authentication token with the given Subject * and the default lifetime. * @param subject the Subject to associated with this token when it is consumed * @return */ public String createToken(final Subject subject) { return createToken(subject, DEFAULT_TOKEN_LIFETIME); }
@Override public String getLocalizedDescription() { return getLocalizedString(""); }
private void saveSession(String sessionId, String remoteAddr, final Subject subject, final int sessionTimeoutInMins) { purgeInactiveSessions(); activeSessions.put(sessionId, new SessionData(sessionId, remoteAddr, subject, sessionTimeoutInMins) ); }
private boolean authenticateUsingOneTimeToken( final String oneTimeAuthToken) { return oneTimeAuthToken == null ? false : authTokenManager.consumeToken(oneTimeAuthToken); }
/** * Blocks for {@link ManagedFile#timeOut} milliseconds for the read access * to the managed file. * * @return the lock instance on the locked file. * @throws IOException if the file cannot be locked * @throws TimeoutException if the lock cannot be obtained before the timeOut * expiration. */ public ManagedLock accessRead() throws IOException, TimeoutException { rl._lock(); return rl; }
@Override public String getLocalizedDescription() { return getLocalizedString(""); }
@Override public String getLocalizedDescription() { return getLocalizedString(""); }
/** * Creates a ParameterMap from the @Param fields defined on the * injected objects provided in the constructor call. * @return ParameterMap for the parameters injected into the admin object * @throws IllegalArgumentException * @throws IllegalAccessException */ public ParameterMap extract() throws IllegalArgumentException, IllegalAccessException { return extract(Collections.EMPTY_SET); }
/** * Creates a new limited use authentication token with the default * lifetime. * @return auth token */ public String createToken() { return createToken(DEFAULT_TOKEN_LIFETIME); }
private void saveSession(String sessionId, String remoteAddr, final Subject subject, final int sessionTimeoutInMins) { purgeInactiveSessions(); activeSessions.put(sessionId, new SessionData(sessionId, remoteAddr, subject, sessionTimeoutInMins) ); }
@Override public String getLocalizedDescription() { return getLocalizedString(""); }
@Override public String getLocalizedDescription() { return getLocalizedString(""); }
@Override public String getLocalizedPromptAgain() { return getLocalizedString(".promptAgain"); }
/** * Creates a ParameterMap from the @Param fields defined on the * injected objects provided in the constructor call. * @return ParameterMap for the parameters injected into the admin object * @throws IllegalArgumentException * @throws IllegalAccessException */ public ParameterMap extract() throws IllegalArgumentException, IllegalAccessException { return extract(Collections.EMPTY_SET); }
/** * Creates a new limited use authentication token with the default * lifetime. * @return auth token */ public String createToken() { return createToken(DEFAULT_TOKEN_LIFETIME); }
@Override public String getLocalizedPromptAgain() { return getLocalizedString(".promptAgain"); }
@Override public String getLocalizedPromptAgain() { return getLocalizedString(".promptAgain"); }
/** * Creates a new limited use authentication token with the given Subject * and the default lifetime. * @param subject the Subject to associated with this token when it is consumed * @return */ public String createToken(final Subject subject) { return createToken(subject, DEFAULT_TOKEN_LIFETIME); }
@Override public String getLocalizedPrompt() { return getLocalizedString(".prompt"); }