@Test public void testToAuthority() { assertThat(RpcUriUtils.toAuthority("9F2B", "960", "10vehu", "vehu10", null, null), equalTo("960:10vehu;vehu10@9F2B")); assertThat(RpcUriUtils.toAuthority("9F2B", "960", "10vehu", "vehu10", "newvehu10", "newvehu10", null, null), equalTo("960:10vehu;vehu10;newvehu10;newvehu10@9F2B")); assertThat(RpcUriUtils.toAuthority(new RpcHost("example.org", 9060), "960", "10vehu", "vehu10"), equalTo("960:10vehu;vehu10@example.org:9060")); assertThat(RpcUriUtils.toAuthority(new RpcHost("example.org", 9060), "foo;bar"), equalTo("foo;bar@example.org:9060")); assertThat(RpcUriUtils.toAuthority(new RpcHost("example.org", 9060), AnonymousConnectionSpec.ANONYMOUS), equalTo(AnonymousConnectionSpec.ANONYMOUS + "@example.org:9060")); assertThat(RpcUriUtils.toAuthority("9F2B", "960", "1A2B3C4D5E6F", "123.45.67.89", "www.example.org"), equalTo("www.example.org(123.45.67.89)960:1A2B3C4D5E6F@9F2B")); assertThat(RpcUriUtils.toAuthority("9F2B", null, "1A2B3C4D5E6F", "123.45.67.89", "www.example.org"), equalTo("www.example.org(123.45.67.89)1A2B3C4D5E6F@9F2B")); }
public static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName) { return toCredentials(division, accessCode, verifyCode, clientAddress, clientHostName) + "@" + vistaId; }
RpcUriUtils { public static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName) { return toCredentials(division, accessCode, verifyCode, clientAddress, clientHostName) + "@" + vistaId; } }
RpcUriUtils { public static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName) { return toCredentials(division, accessCode, verifyCode, clientAddress, clientHostName) + "@" + vistaId; }  }
RpcUriUtils { public static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName) { return toCredentials(division, accessCode, verifyCode, clientAddress, clientHostName) + "@" + vistaId; }  @Deprecated static void isVistaRpcUri(URI uri); @Deprecated static void isVistaLinkUri(URI uri); @Deprecated static URI toURI(RpcRequest request); @Deprecated static URI toURI(RpcHost host, String rpcContext, String rpcName, List params, int timeout); static UriComponents toUriComponents(String uri); static UriComponents toUriComponents(RpcRequest request); static UriComponents toUriComponents(RpcHost host, String rpcContext, String rpcName, List params, int timeout); static UriComponents toUriComponents(RpcHost host, ConnectionSpec auth); static String toUriString(RpcHost host, ConnectionSpec auth); static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName); static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String newVerifyCode, String confirmNewVerifyCode, String clientAddress, String clientHostName); static String toAuthority(RpcHost host, String division, String accessCode, String verifyCode); static String toAuthority(RpcHost host, String credentials); static String toAuthority(String vistaId, String division, String appHandle, String clientAddress, String clientHostName); static String toPath(String rpcContext, String rpcName); static String toQuery(RpcRequest request); static String toQuery(List params, int timeout); static String toCredentials(ConnectionSpec auth); static String toCredentials(String division, String accessCode, String verifyCode, String clientAddress, String clientHostName); static String toCredentials(String division, String accessCode, String verifyCode, String newVerifyCode, String confirmNewVerifyCode, String clientAddress, String clientHostName); static String toCredentials(String division, String appHandle, String clientAddress, String clientHostName); static String extractUserInfo(String uri); static String extractDivision(String uri); @Deprecated static String extractDivision(URI uri); static String extractAccessCode(String uri); static String extractVerifyCode(String uri); static String extractCredentials(String uri); @Deprecated static String extractCredentials(URI uri); @Deprecated static String extractAccessCode(URI uri); @Deprecated static String extractVerifyCode(URI uri); @Deprecated static String extractRpcContext(URI uri); @Deprecated static String extractRpcName(URI uri); static String extractScheme(String uri); @Deprecated static String extractScheme(URI uri); static String extractHostname(String uri); @Deprecated static String extractHostname(URI uri); static int extractPort(String uri); @Deprecated static int extractPort(URI uri); static RpcHost extractHost(String uri); @Deprecated static RpcHost extractHost(URI uri); static String extractRpcContext(String uri); static String extractRpcName(String uri); static String sanitize(String uri, ConnectionSpec auth); @Deprecated static String sanitize(URI uri, ConnectionSpec auth); @Deprecated static URI toURI(String location); @Deprecated static URI toURI(String uri, List params); @Deprecated static URI toSafeURI(String uriString); static ConnectionSpec extractConnectionSpec(String uriString); }
RpcUriUtils { public static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName) { return toCredentials(division, accessCode, verifyCode, clientAddress, clientHostName) + "@" + vistaId; }  @Deprecated static void isVistaRpcUri(URI uri); @Deprecated static void isVistaLinkUri(URI uri); @Deprecated static URI toURI(RpcRequest request); @Deprecated static URI toURI(RpcHost host, String rpcContext, String rpcName, List params, int timeout); static UriComponents toUriComponents(String uri); static UriComponents toUriComponents(RpcRequest request); static UriComponents toUriComponents(RpcHost host, String rpcContext, String rpcName, List params, int timeout); static UriComponents toUriComponents(RpcHost host, ConnectionSpec auth); static String toUriString(RpcHost host, ConnectionSpec auth); static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String clientAddress, String clientHostName); static String toAuthority(String vistaId, String division, String accessCode, String verifyCode, String newVerifyCode, String confirmNewVerifyCode, String clientAddress, String clientHostName); static String toAuthority(RpcHost host, String division, String accessCode, String verifyCode); static String toAuthority(RpcHost host, String credentials); static String toAuthority(String vistaId, String division, String appHandle, String clientAddress, String clientHostName); static String toPath(String rpcContext, String rpcName); static String toQuery(RpcRequest request); static String toQuery(List params, int timeout); static String toCredentials(ConnectionSpec auth); static String toCredentials(String division, String accessCode, String verifyCode, String clientAddress, String clientHostName); static String toCredentials(String division, String accessCode, String verifyCode, String newVerifyCode, String confirmNewVerifyCode, String clientAddress, String clientHostName); static String toCredentials(String division, String appHandle, String clientAddress, String clientHostName); static String extractUserInfo(String uri); static String extractDivision(String uri); @Deprecated static String extractDivision(URI uri); static String extractAccessCode(String uri); static String extractVerifyCode(String uri); static String extractCredentials(String uri); @Deprecated static String extractCredentials(URI uri); @Deprecated static String extractAccessCode(URI uri); @Deprecated static String extractVerifyCode(URI uri); @Deprecated static String extractRpcContext(URI uri); @Deprecated static String extractRpcName(URI uri); static String extractScheme(String uri); @Deprecated static String extractScheme(URI uri); static String extractHostname(String uri); @Deprecated static String extractHostname(URI uri); static int extractPort(String uri); @Deprecated static int extractPort(URI uri); static RpcHost extractHost(String uri); @Deprecated static RpcHost extractHost(URI uri); static String extractRpcContext(String uri); static String extractRpcName(String uri); static String sanitize(String uri, ConnectionSpec auth); @Deprecated static String sanitize(URI uri, ConnectionSpec auth); @Deprecated static URI toURI(String location); @Deprecated static URI toURI(String uri, List params); @Deprecated static URI toSafeURI(String uriString); static ConnectionSpec extractConnectionSpec(String uriString); static final String VISTA_RPC_BROKER_SCHEME; static final String VISTALINK_SCHEME; static final int DEFAULT_PORT; static final String DIVISION_CREDENTIALS_DELIMITER; static final String ACCESS_VERIFY_CODE_DELIMITER; }