1 18 19 package jcifs.smb; 20 21 import jcifs.util.Hexdump; 22 23 class NtTransQuerySecurityDesc extends SmbComNtTransaction { 24 25 int fid; 26 int securityInformation; 27 28 NtTransQuerySecurityDesc( int fid, int securityInformation ) { 29 this.fid = fid; 30 this.securityInformation = securityInformation; 31 command = SMB_COM_NT_TRANSACT; 32 function = NT_TRANSACT_QUERY_SECURITY_DESC; 33 setupCount = 0; 34 totalDataCount = 0; 35 maxParameterCount = 4; 36 maxDataCount = 32768; 37 maxSetupCount = (byte)0x00; 38 } 39 40 int writeSetupWireFormat( byte[] dst, int dstIndex ) { 41 return 0; 42 } 43 int writeParametersWireFormat( byte[] dst, int dstIndex ) { 44 int start = dstIndex; 45 46 writeInt2( fid, dst, dstIndex ); 47 dstIndex += 2; 48 dst[dstIndex++] = (byte)0x00; dst[dstIndex++] = (byte)0x00; writeInt4( securityInformation, dst, dstIndex ); 51 dstIndex += 4; 52 53 return dstIndex - start; 54 } 55 int writeDataWireFormat( byte[] dst, int dstIndex ) { 56 return 0; 57 } 58 int readSetupWireFormat( byte[] buffer, int bufferIndex, int len ) { 59 return 0; 60 } 61 int readParametersWireFormat( byte[] buffer, int bufferIndex, int len ) { 62 return 0; 63 } 64 int readDataWireFormat( byte[] buffer, int bufferIndex, int len ) { 65 return 0; 66 } 67 public String toString() { 68 return new String ( "NtTransGetSecurityDesc[" + super.toString() + 69 ",fid=0x" + Hexdump.toHexString( fid, 4 ) + 70 ",securityInformation=0x" + Hexdump.toHexString( securityInformation, 8 ) + "]" ); 71 } 72 } 73 | Popular Tags |