agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/auth/ProxyUserGuard.java
/**
     * Determines whether or not the given token is valid for any of our trusted clients.
     * 
     * @param identifier the user ID.
     * @param token the secret token.
     * @return true if the token is valid.
     * @throws IOException if the certificate file can't be read for one of our trusted users.
     * @throws GeneralSecurityException if a certificate can't be loaded or uses an unsupported algorithm.
     */
Determines whether or not the given token is valid for any of our trusted clients.

@param identifier the user ID.
@param token the secret token.
@return true if the token is valid.
@throws IOException if the certificate file can't be read for one of our trusted users.
@throws GeneralSecurityException if a certificate can't be loaded or uses an unsupported algorithm.
Determines whether or not the given token is valid for any of our trusted clients . @param identifier the user ID . @param token the secret token . @return true if the token is valid . @throws IOException if the certificate file can ' t be read for one of our trusted users . @throws GeneralSecurityException if a certificate can ' t be loaded or uses an unsupported algorithm .
public boolean checkToken(String identifier, char[] token) throws IOException, GeneralSecurityException {
        boolean isValid = false;
        for (String trustedUser : Settings.TRUSTED_USERS) {
            if (tokenValid(trustedUser, identifier, token)) {
                isValid = true;
                break;
            }
        }
        return isValid;
    }
public boolean checkToken ( String identifier , char [ ] token ) throws IOException , GeneralSecurityException { boolean isValid = false ; for ( String trustedUser : Settings . TRUSTED_USERS ) { if ( tokenValid ( trustedUser , identifier , token ) ) { isValid = true ; break ; } } return isValid ; }
Determines whether or not the given token is valid for any of our trusted clients.
Determines whether or not the given token is valid for any of our trusted clients .