agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/auth/ProxyUserGuard.java
/**
     * Determines whether or not the token is in the format we expect. At this time, we expect the token to contain
     * the user ID, a token component separator, and a timestamp.
     * 
     * @param id the expected user ID.
     * @param token the token.
     * @return true if the token is in the expected format.
     */
Determines whether or not the token is in the format we expect. At this time, we expect the token to contain
the user ID, a token component separator, and a timestamp.

@param id the expected user ID.
@param token the token.
@return true if the token is in the expected format.
Determines whether or not the token is in the format we expect . At this time we expect the token to contain the user ID a token component separator and a timestamp . @param id the expected user ID . @param token the token . @return true if the token is in the expected format .
private boolean isValidTokenFormat(String id, String token) {
        boolean isValid = false;
        String[] components = token.split("\\Q" + TOKEN_COMPONENT_SEPARATOR);
        if (components.length == 2 && id.equals(components[0]) && isValidTimestamp(components[1])) {
            isValid = true;
        }
        return isValid;
    }
private boolean isValidTokenFormat ( String id , String token ) { boolean isValid = false ; String [ ] components = token . split ( "\\Q" + TOKEN_COMPONENT_SEPARATOR ) ; if ( components . length == 2 && id . equals ( components [ 0 ] ) && isValidTimestamp ( components [ 1 ] ) ) { isValid = true ; } return isValid ; }
Determines whether or not the token is in the format we expect.
Determines whether or not the token is in the format we expect .