PUB - Type of PublicKeyPRV - Type of PrivateKeypublic interface PublicKeyEntryDecoder<PUB extends java.security.PublicKey,PRV extends java.security.PrivateKey> extends KeyEntryResolver<PUB,PRV>, PublicKeyRawDataDecoder<PUB>, PublicKeyEntryResolver
OpenSSH encoded key dataMAX_BIGINT_OCTETS_COUNTFAILING, IGNORING| Modifier and Type | Method and Description |
|---|---|
default PUB |
decodePublicKeyByType(SessionContext session,
java.lang.String keyType,
java.io.InputStream keyData,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.lang.String |
encodePublicKey(java.io.OutputStream s,
PUB key)
Encodes the
PublicKey using the OpenSSH format - same one used by the decodePublicKey
method(s) |
default java.security.PublicKey |
resolve(SessionContext session,
java.lang.String keyType,
byte[] keyData,
java.util.Map<java.lang.String,java.lang.String> headers) |
cloneKeyPair, clonePrivateKey, clonePublicKey, decodeBigInt, decodeInt, decodeInt, decodeInt, decodeString, decodeString, decodeString, decodeString, decodeString, decodeString, decodeString, encodeBigInt, encodeInt, encodeString, encodeString, encodeString, generateKeyPair, getKeyFactoryInstance, getKeyPairGenerator, readRLEBytes, readRLEBytes, readRLEBytes, writeRLEBytes, writeRLEBytesgetPrivateKeyType, getPublicKeyTypefindSupporterByKeyTypeName, getSupportedKeyTypesdecodePublicKey, decodePublicKey, decodePublicKeydefault java.security.PublicKey resolve(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
resolve in interface PublicKeyEntryResolversession - The SessionContext for invoking this load 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 OpenSSH encoded key dataheaders - Any headers that may have been available when data was readPublicKey - ignored if nulljava.io.IOException - If failed to parse the key datajava.security.GeneralSecurityException - If failed to generate the keydefault 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
decodePublicKeyByType in interface PublicKeyRawDataDecoder<PUB extends java.security.PublicKey>java.io.IOExceptionjava.security.GeneralSecurityExceptionjava.lang.String encodePublicKey(java.io.OutputStream s,
PUB key)
throws java.io.IOException
PublicKey using the OpenSSH format - same one used by the decodePublicKey
method(s)s - The OutputStream to write the data tokey - The PublicKey - may not be nullKeyTypeNamesSupport.getSupportedKeyTypes()java.io.IOException - If failed to generate the encoding