1 31 32 package org.opencms.security; 33 34 import org.opencms.configuration.I_CmsConfigurationParameterHandler; 35 36 46 public interface I_CmsPasswordHandler extends I_CmsConfigurationParameterHandler { 47 48 51 String CONVERT_DIGEST_ENCODING = "compatibility.convert.digestencoding"; 52 53 56 String DIGEST_TYPE_MD5 = "md5"; 57 58 61 String DIGEST_TYPE_PLAIN = "plain"; 62 63 66 String DIGEST_TYPE_SHA = "sha"; 67 68 71 String DIGEST_TYPE_SSHA = "ssha"; 72 73 80 String digest(String password) throws CmsPasswordEncryptionException; 81 82 91 String digest(String password, String digestType, String inputEncoding) throws CmsPasswordEncryptionException; 92 93 98 String getDigestType(); 99 100 105 String getInputEncoding(); 106 107 112 void setDigestType(String digestType); 113 114 119 void setInputEncoding(String inputEncoding); 120 121 132 void validatePassword(String password) throws CmsSecurityException; 133 } | Popular Tags |