public class PublicKeyExtensions extends Object
PublicKeyExtensions.| Constructor and Description |
|---|
PublicKeyExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getKeyLength(PublicKey publicKey)
Gets the key length of the given
PublicKey. |
static List<String> |
splitByFixedLength(String input,
int fixedLength)
Deprecated.
use instead the same name method from StringExtensions
|
static String |
toBase64(PublicKey publicKey)
|
static String |
toHexString(PublicKey publicKey)
|
static String |
toHexString(PublicKey publicKey,
boolean lowerCase)
|
static String |
toPemFormat(PublicKey publicKey)
Transform the public key in pem format.
|
public static int getKeyLength(PublicKey publicKey)
PublicKey.publicKey - the public keypublic static String toHexString(PublicKey publicKey)
publicKey - the public keyString value.public static String toBase64(PublicKey publicKey)
publicKey - the public keyString value.public static String toPemFormat(PublicKey publicKey)
publicKey - the public keypublic static String toHexString(PublicKey publicKey, boolean lowerCase)
publicKey - the public keylowerCase - the flag if the result shell be transform in lower case. If true the result isString value.@Deprecated public static List<String> splitByFixedLength(String input, int fixedLength)
String in parts in the given fixed length.input - the inputfixedLength - the fixed lengthString objectsCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.