@Test public void testIsNotApplicableWithNoCredentials() { CramMD5Mechanism mech = new CramMD5Mechanism(); assertFalse("Should not be applicable with no credentials", mech.isApplicable(null, null, null)); }
@Override public boolean isApplicable(String username, String password, Principal localPrincipal) { return username != null && username.length() > 0 && password != null && password.length() > 0; }
CramMD5Mechanism extends AbstractMechanism { @Override public boolean isApplicable(String username, String password, Principal localPrincipal) { return username != null && username.length() > 0 && password != null && password.length() > 0; } }
CramMD5Mechanism extends AbstractMechanism { @Override public boolean isApplicable(String username, String password, Principal localPrincipal) { return username != null && username.length() > 0 && password != null && password.length() > 0; }  }
CramMD5Mechanism extends AbstractMechanism { @Override public boolean isApplicable(String username, String password, Principal localPrincipal) { return username != null && username.length() > 0 && password != null && password.length() > 0; }  @Override int getPriority(); @Override String getName(); @Override byte[] getInitialResponse(); @Override byte[] getChallengeResponse(byte[] challenge); @Override void verifyCompletion(); @Override boolean isApplicable(String username, String password, Principal localPrincipal); }
CramMD5Mechanism extends AbstractMechanism { @Override public boolean isApplicable(String username, String password, Principal localPrincipal) { return username != null && username.length() > 0 && password != null && password.length() > 0; }  @Override int getPriority(); @Override String getName(); @Override byte[] getInitialResponse(); @Override byte[] getChallengeResponse(byte[] challenge); @Override void verifyCompletion(); @Override boolean isApplicable(String username, String password, Principal localPrincipal);  }