Java Code Examples for javax.security.sasl.SaslServer.getNegotiatedProperty()

The following are Jave code examples for showing how to use getNegotiatedProperty() of the javax.security.sasl.SaslServer class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: hadoop-oss   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 2
Project: hadoop   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 3
Project: aliyun-oss-hadoop-fs   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 4
Project: big-c   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 5
Project: javify   File: SaslOutputStream.java   View Source Code Vote up 5 votes
public SaslOutputStream(SaslServer server, OutputStream dest)
    throws IOException
{
  super();

  this.server = server;
  String size = (String) server.getNegotiatedProperty(Sasl.RAW_SEND_SIZE);
  maxRawSendSize = Integer.parseInt(size);
  client = null;
  this.dest = dest;
}
 
Example 6
Project: javify   File: SaslInputStream.java   View Source Code Vote up 5 votes
public SaslInputStream(SaslServer server, InputStream source)
    throws IOException
{
  super();

  this.server = server;
  String size = (String) server.getNegotiatedProperty(Sasl.RAW_SEND_SIZE);
  maxRawSendSize = Integer.parseInt(size);
  client = null;
  this.source = source;
}
 
Example 7
Project: hadoop-2.6.0-cdh5.4.3   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 8
Project: jvm-stm   File: SaslOutputStream.java   View Source Code Vote up 5 votes
public SaslOutputStream(SaslServer server, OutputStream dest)
    throws IOException
{
  super();

  this.server = server;
  String size = (String) server.getNegotiatedProperty(Sasl.RAW_SEND_SIZE);
  maxRawSendSize = Integer.parseInt(size);
  client = null;
  this.dest = dest;
}
 
Example 9
Project: jvm-stm   File: SaslInputStream.java   View Source Code Vote up 5 votes
public SaslInputStream(SaslServer server, InputStream source)
    throws IOException
{
  super();

  this.server = server;
  String size = (String) server.getNegotiatedProperty(Sasl.RAW_SEND_SIZE);
  maxRawSendSize = Integer.parseInt(size);
  client = null;
  this.source = source;
}
 
Example 10
Project: hadoop-plus   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 11
Project: hops   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 12
Project: hadoop-TCP   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 13
Project: JamVM-PH   File: SaslOutputStream.java   View Source Code Vote up 5 votes
public SaslOutputStream(SaslServer server, OutputStream dest)
    throws IOException
{
  super();

  this.server = server;
  String size = (String) server.getNegotiatedProperty(Sasl.RAW_SEND_SIZE);
  maxRawSendSize = Integer.parseInt(size);
  client = null;
  this.dest = dest;
}
 
Example 14
Project: JamVM-PH   File: SaslInputStream.java   View Source Code Vote up 5 votes
public SaslInputStream(SaslServer server, InputStream source)
    throws IOException
{
  super();

  this.server = server;
  String size = (String) server.getNegotiatedProperty(Sasl.RAW_SEND_SIZE);
  maxRawSendSize = Integer.parseInt(size);
  client = null;
  this.source = source;
}
 
Example 15
Project: hadoop-on-lustre   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 16
Project: hardfs   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 17
Project: hadoop-on-lustre2   File: SaslOutputStream.java   View Source Code Vote up 5 votes
/**
 * Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
 * Note: if the specified OutputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param outStream
 *          the OutputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslOutputStream(OutputStream outStream, SaslServer saslServer) {
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
  if (useWrap) {
    this.outStream = new BufferedOutputStream(outStream, 64*1024);
  } else {
    this.outStream = outStream;
  }
}
 
Example 18
Project: hadoop-oss   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 19
Project: hadoop   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 20
Project: aliyun-oss-hadoop-fs   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 21
Project: big-c   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 22
Project: hadoop-2.6.0-cdh5.4.3   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 23
Project: hadoop-plus   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 24
Project: hops   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 25
Project: hadoop-TCP   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 26
Project: hadoop-on-lustre   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 27
Project: hardfs   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}
 
Example 28
Project: hadoop-on-lustre2   File: SaslInputStream.java   View Source Code Vote up 3 votes
/**
 * Constructs a SASLInputStream from an InputStream and a SaslServer <br>
 * Note: if the specified InputStream or SaslServer is null, a
 * NullPointerException may be thrown later when they are used.
 * 
 * @param inStream
 *          the InputStream to be processed
 * @param saslServer
 *          an initialized SaslServer object
 */
public SaslInputStream(InputStream inStream, SaslServer saslServer) {
  this.inStream = new DataInputStream(inStream);
  this.saslServer = saslServer;
  this.saslClient = null;
  String qop = (String) saslServer.getNegotiatedProperty(Sasl.QOP);
  this.useWrap = qop != null && !"auth".equalsIgnoreCase(qop);
}