Top Description Fields Methods
org.apache.sshd.common.config.keys

public Interface PublicKeyEntryDataResolver

Imports
java.util.Base64, org.apache.sshd.common.util.GenericUtils, .NumberUtils

TODO Add javadoc
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final PublicKeyEntryDataResolver

Method Summary

Modifier and TypeMethod and Description
public default byte[]

Returns:

The decoded data bytes
decodeEntryKeyData
(String
The encoded data - ignored if null/empty
encData
)

Decodes the public key entry data bytes from their string representation - by default it assume Base64 encoding.

public default String

Returns:

The encoded data bytes
encodeEntryKeyData
(byte[]
The key data bytes - ignored if null/empty
keyData
)

Encodes the public key entry data bytes into their string representation - by default it assume Base64 encoding.

Field Detail

DEFAULTback to summary
public static final PublicKeyEntryDataResolver DEFAULT

Method Detail

decodeEntryKeyDataback to summary
public default byte[] decodeEntryKeyData(String encData)

Decodes the public key entry data bytes from their string representation - by default it assume Base64 encoding.

Parameters
encData:String

The encoded data - ignored if null/empty

Returns:byte[]

The decoded data bytes

encodeEntryKeyDataback to summary
public default String encodeEntryKeyData(byte[] keyData)

Encodes the public key entry data bytes into their string representation - by default it assume Base64 encoding.

Parameters
keyData:byte[]

The key data bytes - ignored if null/empty

Returns:String

The encoded data bytes