Examples of UsabilityDetail


Examples of au.net.causal.maven.nativesecurity.encrypter.NativeEncrypter.UsabilityDetail

   
    getLog().info("Encrypters:");
    for (NativeEncrypter encrypter : encrypters)
    {
      boolean usable = encrypter.isUsable();
      UsabilityDetail usabilityDetail = encrypter.getUsabilityDetail();
      String reason;
      if (usabilityDetail == null)
        reason = null;
      else
      {
        if (verboseEncrypterDetail && usabilityDetail.getDetailMessage() != null)
          reason = usabilityDetail.getDetailMessage();
        else
          reason = usabilityDetail.getSummary();
      }
     
      if (reason == null)
        reason = "(no reason given)";
     
      String detail = (usable ? "usable" : "not usable - " + reason);
      getLog().info(encrypter.getClass().getCanonicalName() + " - " + detail);
     
      if (usabilityDetail != null && usabilityDetail.getError() != null)
        getLog().debug(usabilityDetail.getError());
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.