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 the given certificate file and user ID.
     * 
     * @param certFile the name of the certificate file.
     * @param id 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.
     * @throws GeneralSecurityException if the certificate can't be loaded or uses an unsupported algorithm.
     */
Determines whether or not the given token is valid for the given certificate file and user ID.

@param certFile the name of the certificate file.
@param id 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.
@throws GeneralSecurityException if the certificate can't be loaded or uses an unsupported algorithm.
Determines whether or not the given token is valid for the given certificate file and user ID . @param certFile the name of the certificate file . @param id 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 . @throws GeneralSecurityException if the certificate can ' t be loaded or uses an unsupported algorithm .
private boolean tokenValid(String certFile, String id, char[] token) throws IOException, GeneralSecurityException {
        PublicKey publicKey = loadPublicKeyFromCertificateFile(certFile);
        String decryptedToken = decryptToken(publicKey, token);
        return decryptedToken != null && isValidTokenFormat(id, decryptedToken);
    }
private boolean tokenValid ( String certFile , String id , char [ ] token ) throws IOException , GeneralSecurityException { PublicKey publicKey = loadPublicKeyFromCertificateFile ( certFile ) ; String decryptedToken = decryptToken ( publicKey , token ) ; return decryptedToken != null && isValidTokenFormat ( id , decryptedToken ) ; }
Determines whether or not the given token is valid for the given certificate file and user ID.
Determines whether or not the given token is valid for the given certificate file and user ID .