PUB
- Generic PublicKey
typepublic interface PublicKeyRawDataDecoder<PUB extends java.security.PublicKey>
Modifier and Type | Method and Description |
---|---|
default PUB |
decodePublicKey(SessionContext session,
java.lang.String keyType,
byte[] keyData,
int offset,
int length,
java.util.Map<java.lang.String,java.lang.String> headers) |
default PUB |
decodePublicKey(SessionContext session,
java.lang.String keyType,
byte[] keyData,
java.util.Map<java.lang.String,java.lang.String> headers) |
PUB |
decodePublicKey(SessionContext session,
java.lang.String keyType,
java.io.InputStream keyData,
java.util.Map<java.lang.String,java.lang.String> headers) |
PUB |
decodePublicKeyByType(SessionContext session,
java.lang.String keyType,
java.io.InputStream keyData,
java.util.Map<java.lang.String,java.lang.String> headers) |
default PUB decodePublicKey(SessionContext session, java.lang.String keyType, byte[] keyData, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException, java.security.GeneralSecurityException
session
- The SessionContext
for invoking this command - may be null
if
not invoked within a session context (e.g., offline tool or session unknown).keyType
- The OpenSSH
reported key typekeyData
- The key data bytes in OpenSSH
format (after BASE64 decoding) - ignored
if null
/emptyheaders
- Any headers that may have been available when data was readPublicKey
- or null
if no datajava.io.IOException
- If failed to decode the keyjava.security.GeneralSecurityException
- If failed to generate the keydefault PUB decodePublicKey(SessionContext session, java.lang.String keyType, byte[] keyData, int offset, int length, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
PUB decodePublicKeyByType(SessionContext session, java.lang.String keyType, java.io.InputStream keyData, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
PUB decodePublicKey(SessionContext session, java.lang.String keyType, java.io.InputStream keyData, java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException, java.security.GeneralSecurityException
session
- The SessionContext
for invoking this command - may be null
if
not invoked within a session context (e.g., offline tool or session unknown).keyType
- The reported / encode key typekeyData
- The key data bytes stream positioned after the key type decoding and making sure
it is one of the supported typesheaders
- Any headers that may have been available when data was readPublicKey
java.io.IOException
- If failed to read from the data streamjava.security.GeneralSecurityException
- If failed to generate the key