agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/auth/ProxyUserGuard.java
/**
     * Converts a byte array to a String using the encoding that we expect for all tokens. An unsupported encoding
     * exception is an unrecoverable error at this point, so a runtime exception is thrown if the encoding isn't
     * supported.
     * 
     * @param bytes the byte array to convert.
     * @return the byte array as a String.
     */
Converts a byte array to a String using the encoding that we expect for all tokens. An unsupported encoding
exception is an unrecoverable error at this point, so a runtime exception is thrown if the encoding isn't
supported.

@param bytes the byte array to convert.
@return the byte array as a String.
Converts a byte array to a String using the encoding that we expect for all tokens . An unsupported encoding exception is an unrecoverable error at this point so a runtime exception is thrown if the encoding isn ' t supported . @param bytes the byte array to convert . @return the byte array as a String .
private String stringFromBytes(byte[] bytes) {
        try {
            return new String(bytes, ENCODING);
        }
        catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }
private String stringFromBytes ( byte [ ] bytes ) { try { return new String ( bytes , ENCODING ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } }
Converts a byte array to a String using the encoding that we expect for all tokens.
Converts a byte array to a String using the encoding that we expect for all tokens .