public static TTransport createSubjectAssumedTransport(String principal, TTransport underlyingTransport, Map<String, String> saslProps) throws IOException { String[] names = principal.split("[/@]"); try { TTransport saslTransport = new TSaslClientTransport("GSSAPI", null, names[0], names[1], saslProps, null, underlyingTransport); return new TSubjectAssumingTransport(saslTransport); } catch (SaslException se) { throw new IOException("Could not instantiate SASL transport", se); } }
public static TTransport createSubjectAssumedTransport(String principal, TTransport underlyingTransport, Map<String, String> saslProps) throws IOException { String[] names = principal.split("[/@]"); try { TTransport saslTransport = new TSaslClientTransport("GSSAPI", null, names[0], names[1], saslProps, null, underlyingTransport); return new TSubjectAssumingTransport(saslTransport); } catch (SaslException se) { throw new IOException("Could not instantiate SASL transport", se); } }
public static TTransport createSubjectAssumedTransport(String principal, TTransport underlyingTransport, Map<String, String> saslProps) throws IOException { String[] names = principal.split("[/@]"); try { TTransport saslTransport = new TSaslClientTransport("GSSAPI", null, names[0], names[1], saslProps, null, underlyingTransport); return new TSubjectAssumingTransport(saslTransport); } catch (SaslException se) { throw new IOException("Could not instantiate SASL transport", se); } }
public static TTransport createSubjectAssumedTransport(String principal, TTransport underlyingTransport, Map<String, String> saslProps) throws IOException { String[] names = principal.split("[/@]"); try { TTransport saslTransport = new TSaslClientTransport("GSSAPI", null, names[0], names[1], saslProps, null, underlyingTransport); return new TSubjectAssumingTransport(saslTransport); } catch (SaslException se) { throw new IOException("Could not instantiate SASL transport", se); } }
public static TTransport createSubjectAssumedTransport(String principal, TTransport underlyingTransport, Map<String, String> saslProps) throws IOException { String[] names = principal.split("[/@]"); try { TTransport saslTransport = new TSaslClientTransport("GSSAPI", null, names[0], names[1], saslProps, null, underlyingTransport); return new TSubjectAssumingTransport(saslTransport); } catch (SaslException se) { throw new IOException("Could not instantiate SASL transport", se); } }
public static TTransport createSubjectAssumedTransport(String principal, TTransport underlyingTransport, Map<String, String> saslProps) throws IOException { String[] names = principal.split("[/@]"); try { TTransport saslTransport = new TSaslClientTransport("GSSAPI", null, names[0], names[1], saslProps, null, underlyingTransport); return new TSubjectAssumingTransport(saslTransport); } catch (SaslException se) { throw new IOException("Could not instantiate SASL transport", se); } }