
public enum Pkcs7Encoder extends Enum<Pkcs7Encoder>
| Enum Constant and Description |
|---|
PKCS7_UTF8_BLOCK32 |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(byte[] decrypted)
删除解密后明文的补位字符.
|
byte[] |
encode(int count)
获得对明文进行补位填充的字节.
|
static Pkcs7Encoder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pkcs7Encoder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pkcs7Encoder PKCS7_UTF8_BLOCK32
public static Pkcs7Encoder[] values()
for (Pkcs7Encoder c : Pkcs7Encoder.values()) System.out.println(c);
public static Pkcs7Encoder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte[] encode(int count)
count - 需要进行填充补位操作的明文字节个数public byte[] decode(byte[] decrypted)
decrypted - 解密后的明文Copyright © 2017. All rights reserved.