Package | Description |
---|---|
com.holonplatform.auth.keys |
Modifier and Type | Interface and Description |
---|---|
static interface |
KeySource.KetSourceWithCharset
A
KeySource which can support a charset. |
Modifier and Type | Method and Description |
---|---|
static KeySource |
KeySource.bytes(byte[] source)
Create a key source from an array of bytes.
|
static KeySource |
KeySource.file(File source)
Create a key source from a
File . |
static KeySource |
KeySource.file(String fileName)
Create a key source from a file with given file name.
|
static KeySource |
KeySource.resource(String name)
Create a key source using a classpath resource using the default ClassLoader.
|
static KeySource |
KeySource.resource(String name,
ClassLoader classLoader)
Create a key source using a classpath resource.
|
static KeySource |
KeySource.stream(InputStream source)
Create a key source from a
InputStream . |
static KeySource |
KeySource.string(String source)
Create a key source from a
String . |
static KeySource |
KeySource.string(String source,
Charset charset)
Create a key source from a
String using given charset. |
static KeySource |
KeySource.string(String source,
String charsetName)
Create a key source from a
String using given charset name. |
Modifier and Type | Method and Description |
---|---|
PrivateKey |
KeyReader.privateKey(KeySource source,
String algorithm,
KeyFormat format,
KeyEncoding encoding,
Map<String,String> parameters)
Read a
PrivateKey from given key source . |
PublicKey |
KeyReader.publicKey(KeySource source,
String algorithm,
KeyFormat format,
KeyEncoding encoding,
Map<String,String> parameters)
Read a
PublicKey from given key source . |
Copyright © 2019 The Holon Platform. All rights reserved.