public enum PasswordEncoding extends java.lang.Enum<PasswordEncoding>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
encodeToHexString(java.lang.String password) |
java.lang.String |
encodeToString(java.lang.String password,
java.lang.String characterEncoding,
PasswordDigestCodec codec) |
abstract java.security.MessageDigest |
getDigest() |
abstract PasswordEncoder |
getEncoder(java.lang.String characterEncoding,
PasswordDigestCodec codec) |
static PasswordEncoding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PasswordEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordEncoding PLAIN
public static final PasswordEncoding MD5
public static final PasswordEncoding SHA1
public static PasswordEncoding[] values()
for (PasswordEncoding c : PasswordEncoding.values()) System.out.println(c);
public static PasswordEncoding valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract PasswordEncoder getEncoder(java.lang.String characterEncoding, PasswordDigestCodec codec) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String encodeToString(java.lang.String password,
java.lang.String characterEncoding,
PasswordDigestCodec codec)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String encodeToHexString(java.lang.String password)
throws java.lang.Exception
java.lang.Exceptionpublic abstract java.security.MessageDigest getDigest()
throws java.security.NoSuchAlgorithmException
null if none is usedjava.security.NoSuchAlgorithmException
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0