PUB - Type of PublicKeyPRV - Type of PrivateKeypublic interface PublicKeyEntryDecoder<PUB extends PublicKey,PRV extends PrivateKey> extends KeyEntryResolver<PUB,PRV>, PublicKeyEntryResolver
OpenSSH encoded key dataFAILING, IGNORING| Modifier and Type | Method and Description |
|---|---|
default PUB |
decodePublicKey(byte... keyData) |
default PUB |
decodePublicKey(byte[] keyData,
int offset,
int length) |
default PUB |
decodePublicKey(InputStream keyData) |
PUB |
decodePublicKey(String keyType,
InputStream keyData) |
String |
encodePublicKey(OutputStream s,
PUB key)
|
default PublicKey |
resolve(String keyType,
byte[] keyData) |
cloneKeyPair, clonePrivateKey, clonePublicKey, decodeBigInt, decodeInt, decodeString, decodeString, decodeString, encodeBigInt, encodeInt, encodeString, encodeString, encodeString, generateKeyPair, getKeyFactoryInstance, getKeyPairGenerator, getPrivateKeyType, getPublicKeyType, getSupportedTypeNames, readRLEBytes, writeRLEBytes, writeRLEBytesdefault PublicKey resolve(String keyType, byte[] keyData) throws IOException, GeneralSecurityException
resolve in interface PublicKeyEntryResolverkeyType - The OpenSSH reported key typekeyData - The OpenSSH encoded key dataPublicKey - ignored if nullIOException - If failed to parse the key dataGeneralSecurityException - If failed to generate the keydefault PUB decodePublicKey(byte... keyData) throws IOException, GeneralSecurityException
keyData - The key data bytes in OpenSSH format (after
BASE64 decoding) - ignored if null/emptyPublicKey - or null if no dataIOException - If failed to decode the keyGeneralSecurityException - If failed to generate the keydefault PUB decodePublicKey(byte[] keyData, int offset, int length) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptiondefault PUB decodePublicKey(InputStream keyData) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionPUB decodePublicKey(String keyType, InputStream keyData) throws IOException, GeneralSecurityException
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 typesPublicKeyIOException - If failed to read from the data streamGeneralSecurityException - If failed to generate the keyString encodePublicKey(OutputStream s, PUB key) throws IOException
s - The OutputStream to write the data tokey - The PublicKey - may not be nullKeyEntryResolver.getSupportedTypeNames()IOException - If failed to generate the encodingCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.