Package javax.security.auth

Examples of javax.security.auth.RefreshFailedException


    /**
     * @tests javax.security.auth.RefreshFailedException#RefreshFailedException(
     *        java.lang.String)
     */
    public final void testCtor2() {
        assertNull(new RefreshFailedException(null).getMessage());

        String message = "";
        assertSame(message, new RefreshFailedException(message).getMessage());

        message = "message";
        assertSame(message, new RefreshFailedException(message).getMessage());
    }
View Full Code Here


public class RefreshFailedExceptionTest extends SerializationTest {

    @Override
    protected Object[] getData() {
        return new Object[] {new RefreshFailedException("message")};
    }
View Full Code Here

    public void refresh() throws RefreshFailedException {

        checkState();

        if (!flags[RENEWABLE]) {
            throw new RefreshFailedException(Messages.getString("auth.44")); //$NON-NLS-1$
        }

        if (System.currentTimeMillis() > this.renewTill.getTime()) {
            throw new RefreshFailedException(Messages.getString("auth.45")); //$NON-NLS-1$
        }

        try {
            KrbClient.doTGS();
        } catch (KerberosException e) {
            throw new RefreshFailedException(e.getMessage());
        }
    }
View Full Code Here

      refresh( data);
     
    }
    catch ( Exception ex)
    {
      RefreshFailedException exception = new RefreshFailedException("Pattern ok, but evaluation failed'" + data + "'; pattern '" + uptimeRegex + "'");
      exception.initCause(ex);
      throw exception;
    }
   
  }
View Full Code Here

        loadAverage1Minute =  Double.parseDouble( matcher.group(i++));
        loadAverage5Minutes =  Double.parseDouble( matcher.group(i++));
        loadAverage15Minutes =  Double.parseDouble( matcher.group(i++));
      }
      else {
        throw new RefreshFailedException( "'" + uptimeResult + "' did not match the pattern '" + uptimeRegex + "'.");
      }
   
   
  }
View Full Code Here

      {
       refresh( uptimeExample);
      }
      catch ( Exception ex)
      {
        RefreshFailedException exception = new RefreshFailedException("'" + uptimeExample + "' did not match the pattern '" + uptimeRegex + "'");
        exception.initCause(ex);
        throw exception;
      }
   
  }
View Full Code Here

TOP

Related Classes of javax.security.auth.RefreshFailedException

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.