void buildACCSEC(int secmec, String rdbnam, byte[] sectkn) throws SqlException { createCommand(); // place the llcp for the ACCSEC in the buffer. save the length bytes for // later update markLengthBytes(CodePoint.ACCSEC); // the security mechanism is a required instance variable. it will // always be sent. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (sectkn != null) { buildSECTKN(sectkn); } // the accsec command is complete so notify the the request object to // update the ddm length and the dss header length. updateLengthBytes(); }
void buildACCSEC(int secmec, String rdbnam, byte[] sectkn) throws SqlException { createCommand(); // place the llcp for the ACCSEC in the buffer. save the length bytes for // later update markLengthBytes(CodePoint.ACCSEC); // the security mechanism is a required instance variable. it will // always be sent. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (sectkn != null) { buildSECTKN(sectkn); } // the accsec command is complete so notify the the request object to // update the ddm length and the dss header length. updateLengthBytes(); }
void buildSECCHK(int secmec, String rdbnam, String user, String password, byte[] sectkn, byte[] sectkn2) throws SqlException { createCommand(); markLengthBytes(CodePoint.SECCHK); // always send the negotiated security mechanism for the connection. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (user != null) { buildUSRID(user); } if (password != null) { buildPASSWORD(password); } if (sectkn != null) { buildSECTKN(sectkn); } if (sectkn2 != null) { buildSECTKN(sectkn2); } updateLengthBytes(); }
void buildSECCHK(int secmec, String rdbnam, String user, String password, byte[] sectkn, byte[] sectkn2) throws SqlException { createCommand(); markLengthBytes(CodePoint.SECCHK); // always send the negotiated security mechanism for the connection. buildSECMEC(secmec); // the rdbnam will be built and sent. different sqlam levels support // different lengths. at this point the length has been checked against // the maximum allowable length. so write the bytes and padd up to the // minimum length if needed. buildRDBNAM(rdbnam); if (user != null) { buildUSRID(user); } if (password != null) { buildPASSWORD(password); } if (sectkn != null) { buildSECTKN(sectkn); } if (sectkn2 != null) { buildSECTKN(sectkn2); } updateLengthBytes(); }