All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jcifs.smb.MIEName Maven / Gradle / Ivy

Go to download

JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java

There is a newer version: 1.3.18.1
Show newest version
package jcifs.smb;

import org.ietf.jgss.GSSException;
import org.ietf.jgss.Oid;

// >>SmbAuthenticator
/**
 * This class is used to parse the name of context initiator and 
 * context acceptor which are retrieved from GSSContext.
 * 
 * @author Shun
 *
 */
class MIEName {
    private static byte[] TOK_ID = {04, 01}; 
    private static int TOK_ID_SIZE = 2;  
    private static int MECH_OID_LEN_SIZE = 2;
    private static int NAME_LEN_SIZE = 4;
    
    private Oid oid;
    private String name;
    
    /**
     * Instance a MIEName object.
     * 
     * @param buf the name of context initiator or acceptor
     */
    MIEName(byte[] buf){
        int i;
        int len;
        if(buf.length




© 2015 - 2024 Weber Informatics LLC | Privacy Policy