Package org.eclipse.net4j.util.security
Klasse SecurityUtil
java.lang.Object
org.eclipse.net4j.util.security.SecurityUtil
- Autor:
- Eike Stepper
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic byte[]
Veraltet.As of 3.3.static byte[]
static byte[]
pbeDecrypt
(byte[] data, char[] password, String algorithmName, byte[] salt, int count) static byte[]
pbeEncrypt
(byte[] data, char[] password, String algorithmName, byte[] salt, int count) static void
setAuthorizationContext
(Map<String, Object> authorizationContext) static char[]
toCharArray
(String str) static String
toString
(char[] chars) static void
withAuthorizationContext
(Map<String, Object> authorizationContext, Runnable runnable)
-
Felddetails
-
PBE_WITH_MD5_AND_DES
- Siehe auch:
-
DEFAULT_SALT
public static final byte[] DEFAULT_SALT- Seit:
- 2.0
-
DEFAULT_ITERATION_COUNT
public static final int DEFAULT_ITERATION_COUNT- Seit:
- 2.0
- Siehe auch:
-
-
Methodendetails
-
pbe
public static byte[] pbe(byte[] data, char[] password, String algorithmName, byte[] salt, int count, int mode) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException -
pbeDecrypt
public static byte[] pbeDecrypt(byte[] data, char[] password, String algorithmName, byte[] salt, int count) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException -
pbeEncrypt
public static byte[] pbeEncrypt(byte[] data, char[] password, String algorithmName, byte[] salt, int count) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException -
toString
- Seit:
- 3.14
-
toCharArray
- Seit:
- 3.14
-
getAuthorizationContext
- Seit:
- 3.23
-
setAuthorizationContext
- Seit:
- 3.23
-
withAuthorizationContext
public static void withAuthorizationContext(Map<String, Object> authorizationContext, Runnable runnable) - Seit:
- 3.23
-
encrypt
@Deprecated public static byte[] encrypt(byte[] data, char[] password, String algorithmName, byte[] salt, int count) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException Veraltet.As of 3.3. usepbeEncrypt(byte[], char[], String, byte[], int)
.
-