Interface BufferPublicKeyParser<PUB extends java.security.PublicKey>

    • Method Detail

      • isKeyTypeSupported

        boolean isKeyTypeSupported​(java.lang.String keyType)
        Parameters:
        keyType - The key type - e.g., "ssh-rsa", "ssh-dss"
        Returns:
        true if this key type is supported by the parser
      • getRawPublicKey

        PUB getRawPublicKey​(java.lang.String keyType,
                            Buffer buffer)
                     throws java.security.GeneralSecurityException
        Parameters:
        keyType - The key type - e.g., "ssh-rsa", "ssh-dss"
        buffer - The Buffer containing the encoded raw public key
        Returns:
        The decoded PublicKey
        Throws:
        java.security.GeneralSecurityException - If failed to generate the key