Tabnine Logo
jcifs.util
Code IndexAdd Tabnine to your IDE (free)

How to use jcifs.util

Best Java code snippets using jcifs.util (Showing top 20 results out of 315)

origin: jcifs/jcifs

public static int enc_uint64be( long l, byte[] dst, int di )
{
  enc_uint32be( (int)(l & 0xFFFFFFFFL), dst, di + 4 );
  enc_uint32be( (int)(( l >> 32L ) & 0xFFFFFFFFL), dst, di );
  return 8;
}
public static int enc_uint64le( long l, byte[] dst, int di )
origin: jcifs/jcifs

/**
 * This must be called before <tt>getInstance</tt> is called or
 * it will have no effect.
 */
public static void setInstance( PrintStream stream ) {
  inst = new LogStream( stream );
}
public static LogStream getInstance() {
origin: org.samba.jcifs/jcifs

private void decrypt( byte[] cipherText, int cipherOff, byte[] clearText, int clearOff ) {
  squashBytesToInts( cipherText, cipherOff, tempInts, 0, 2 );
  des( tempInts, tempInts, decryptKeys );
  spreadIntsToBytes( tempInts, 0, clearText, clearOff, 2 );
}
origin: org.codelibs/jcifs

public static int enc_uint64le ( long l, byte[] dst, int di ) {
  enc_uint32le((int) ( l & 0xFFFFFFFFL ), dst, di);
  enc_uint32le((int) ( ( l >> 32L ) & 0xFFFFFFFFL ), dst, di + 4);
  return 8;
}
origin: jcifs/jcifs

public static long dec_uint64le( byte[] src, int si )
{
  long l;
  l = dec_uint32le( src, si + 4 ) & 0xFFFFFFFFL;
  l <<= 32L;
  l |= dec_uint32le( src, si ) & 0xFFFFFFFFL;
  return l;
}
origin: org.codelibs/jcifs

  /**
   * {@inheritDoc}
   *
   * @see jcifs.internal.smb2.ServerMessageBlock2#toString()
   */
  @Override
  public String toString () {
    return "Smb2OpblockBreakNotification[oplockLevel=" + this.oplockLevel + ",fileId=" + Hexdump.toHexString(this.fileId) + "]";
  }
}
origin: org.samba.jcifs/jcifs

public DES( byte[] key )    {
  if( key.length == 7 ) {
    byte[] key8 = new byte[8];
    makeSMBKey( key, key8 );
    setKey( key8 );
  } else {
    setKey( key );
  }
}
origin: org.codelibs/jcifs

/**
 * 
 * @param key
 * @return HMACT64 MAC
 */
public static MessageDigest getHMACT64 ( byte[] key ) {
  return new HMACT64(key);
}
origin: jcifs/jcifs

  public static LogStream getInstance() {
    if( inst == null ) {
      setInstance( System.err );
    }
    return inst;
  }
}
origin: com.jaeksoft/jcifs-krb5-jdk7

public int available() throws IOException {
  if( file.log.level >= 3 )
    file.log.println( "Named Pipe available() does not apply to TRANSACT Named Pipes" );
  return 0;
}
int receive( byte[] b, int off, int len ) {
origin: org.codelibs/jcifs

/**
 * 
 * @param str
 * @return the string as bytes (UTF16-LE)
 */
public static byte[] getUNIBytes ( String str ) {
  return getBytes(str, UNI_ENCODING);
}
origin: org.codelibs/jcifs

/**
 * Construct a digest with a non-zero starting sequence number
 * 
 * @param macSigningKey
 * @param initialSequence
 */
public SMB1SigningDigest ( byte[] macSigningKey, int initialSequence ) {
  this.digest = Crypto.getMD5();
  this.macSigningKey = macSigningKey;
  this.signSequence = initialSequence;
}
origin: jcifs/jcifs

private void encrypt( byte[] clearText, int clearOff, byte[] cipherText, int cipherOff ) {
  squashBytesToInts( clearText, clearOff, tempInts, 0, 2 );
  des( tempInts, tempInts, encryptKeys );
  spreadIntsToBytes( tempInts, 0, cipherText, cipherOff, 2 );
}
origin: org.codelibs/jcifs

  @Override
  public String toString () {
    String ret = "FileNotifyInformation[nextEntry=" + this.nextEntryOffset + ",action=0x" + Hexdump.toHexString(this.action, 4) + ",file="
        + this.fileName + "]";
    return ret;
  }
}
origin: com.jaeksoft/jcifs-krb5-jdk7

public DES( byte[] key )    {
  if( key.length == 7 ) {
    byte[] key8 = new byte[8];
    makeSMBKey( key, key8 );
    setKey( key8 );
  } else {
    setKey( key );
  }
}
origin: org.samba.jcifs/jcifs

public static int enc_uint64be( long l, byte[] dst, int di )
{
  enc_uint32be( (int)(l & 0xFFFFFFFFL), dst, di + 4 );
  enc_uint32be( (int)(( l >> 32L ) & 0xFFFFFFFFL), dst, di );
  return 8;
}
public static int enc_uint64le( long l, byte[] dst, int di )
origin: org.samba.jcifs/jcifs

/**
 * This must be called before <tt>getInstance</tt> is called or
 * it will have no effect.
 */
public static void setInstance( PrintStream stream ) {
  inst = new LogStream( stream );
}
public static LogStream getInstance() {
origin: org.codelibs/jcifs

/**
 * 
 * @param str
 * @return the string as bytes (ASCII)
 */
public static byte[] getASCIIBytes ( String str ) {
  return getBytes(str, ASCII_ENCODING);
}
origin: org.samba.jcifs/jcifs

static String getResultMessage(int result) {
  return result < 4 ?
      result_message[result] :
      "0x" + jcifs.util.Hexdump.toHexString(result, 4);
}
public DcerpcException getResult() {
origin: com.jaeksoft/jcifs-krb5-jdk7

static String getResultMessage(int result) {
  return result < 4 ?
      result_message[result] :
      "0x" + jcifs.util.Hexdump.toHexString(result, 4);
}
public DcerpcException getResult() {
jcifs.util

Most used classes

  • Hexdump
  • Base64
  • Encdec
  • HMACT64
    This is an implementation of the HMACT64 keyed hashing algorithm. HMACT64 is defined by Luke Leighto
  • Transport
    This class simplifies communication for protocols that support multiplexing requests. It encapsulate
  • LogStream,
  • DES,
  • MD4,
  • MimeMap,
  • RC4,
  • ByteEncodable,
  • Crypto,
  • Strings,
  • ConnectionTimeoutException,
  • Request,
  • RequestTimeoutException,
  • Response
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now