public class PemFileIOs extends Securitys
| 构造器和说明 |
|---|
PemFileIOs() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
readKey(File file) |
static byte[] |
readKey(File file,
KeyEncoding encoding) |
static byte[] |
readKey(Resource resource) |
static byte[] |
readKey(Resource resource,
KeyEncoding encoding) |
static String |
readKeyAsString(byte[] bytes) |
static String |
readKeyAsString(InputStream inputStream) |
static String |
readKeyAsString(Resource resource) |
static String |
readKeyFile(Resource resource)
已过时。
|
static void |
writeKey(byte[] keyBytes,
File file) |
static void |
writeKey(byte[] keyBytes,
File file,
KeyEncoding encoding) |
static void |
writeKey(byte[] keyBytes,
File file,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
writeKey(byte[] keyBytes,
OutputStream outputStream,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
writeKey(byte[] keyBytes,
StringBuilder stringBuilder,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
writeKey(byte[] keyBytes,
Writer writer,
KeyEncoding encoding,
String headLine,
String footerLine) |
static void |
writeKey(Key key,
File file) |
static void |
writeKey(Key key,
File file,
KeyEncoding encoding) |
static void |
writeKey(Key key,
File file,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
writeKey(Key key,
OutputStream outputStream,
KeyEncoding encoding,
String headerLine,
String footerLine) |
addProvider, getLangxSecurityProvider, getProvider, getSecureRandom, insertProvider, insertProviderAt, langxProviderInstalled, loadLangxProvider, setuppublic static byte[] readKey(File file)
public static byte[] readKey(File file, KeyEncoding encoding)
public static byte[] readKey(Resource resource)
public static byte[] readKey(Resource resource, KeyEncoding encoding)
public static String readKeyAsString(byte[] bytes)
public static String readKeyAsString(InputStream inputStream)
@Deprecated public static String readKeyFile(Resource resource)
public static void writeKey(@NonNull Key key, @NonNull File file) throws IOException
IOExceptionpublic static void writeKey(@NonNull Key key, @NonNull File file, KeyEncoding encoding) throws IOException
IOExceptionpublic static void writeKey(@NonNull Key key, @NonNull File file, KeyEncoding encoding, @Nullable String headerLine, @Nullable String footerLine) throws IOException
IOExceptionpublic static void writeKey(@NonNull Key key, @NonNull OutputStream outputStream, KeyEncoding encoding, @Nullable String headerLine, @Nullable String footerLine) throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
File file)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
File file,
KeyEncoding encoding)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
File file,
KeyEncoding encoding,
String headerLine,
String footerLine)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
OutputStream outputStream,
KeyEncoding encoding,
String headerLine,
String footerLine)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
Writer writer,
KeyEncoding encoding,
String headLine,
String footerLine)
throws IOException
IOExceptionpublic static void writeKey(byte[] keyBytes,
StringBuilder stringBuilder,
KeyEncoding encoding,
String headerLine,
String footerLine)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.