jcifs.smb.MIEName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcifs-krb5-jdk7 Show documentation
Show all versions of jcifs-krb5-jdk7 Show documentation
JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java
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