Package jcifs.smb

Examples of jcifs.smb.SmbException


            });
        } catch (PrivilegedActionException e) {
            if (e.getException() instanceof SmbException) {
                throw (SmbException) e.getException();
            }
            throw new SmbException(e.getMessage(), e.getException());
        }
    }
View Full Code Here


                        if(session.transport.digest == null &&
                                (session.transport.server.signaturesRequired ||
                                        (session.transport.server.signaturesEnabled && SmbConstants.SIGNPREF))){
                        Key key = context.searchSessionKey(subject);
                        if(key == null){
                            throw new SmbException("Not found the session key.");
                        }
                        request.digest = new SigningDigest(key.getEncoded());
                    }
   
                    session.transport.send( request, response );
                    session.transport.digest = request.digest;
                   
                    token = response.getSecurityBlob().get();
                }
            }
            session.setUid(response.uid);
            session.setSessionSetup(true);

        }catch (GSSException e) {
            e.printStackTrace();
            throw new SmbException(e.getMessage());
        }finally{
            if(context != null){
                try {context.dispose();} catch (GSSException e) {}
            }
        }
View Full Code Here

  protected static boolean fileExists(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static boolean fileIsDirectory(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static long fileLastModified(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static long fileLength(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static SmbFile[] fileListFiles(SmbFile file, SmbFileFilter filter)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static int getFileType(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static boolean fileExists(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

  protected static boolean fileIsDirectory(SmbFile file)
    throws SmbException
  {
    int totalTries = 0;
    int retriesRemaining = 3;
    SmbException currentException = null;
    while (retriesRemaining > 0 && totalTries < 5)
    {
      retriesRemaining--;
      totalTries++;
      try
View Full Code Here

TOP

Related Classes of jcifs.smb.SmbException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.