Package ch.entwine.weblounge.common.security

Examples of ch.entwine.weblounge.common.security.DigestType


  @Override
  public boolean equals(Object o) {
    if (!(o instanceof Password))
      return false;
    Password pw = (Password) o;
    DigestType digestType = pw.getDigestType();
    switch (digestType) {
      case md5:
        return md5.equals(pw.getPassword());
      case plain:
        try {
View Full Code Here


    if (StringUtils.isNotBlank(name))
      administrator.setName(name);
    if (StringUtils.isNotBlank(email))
      administrator.setEmail(email);

    DigestType digestType = DigestType.plain;
    if (StringUtils.isNotBlank(digest)) {
      try {
        digestType = DigestType.valueOf(digest);
      } catch (IllegalArgumentException e) {
        logger.error("Digest type '{}' is unknown", digest);
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.security.DigestType

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.